class Zara4::API::Communication::Grant::RefreshTokenGrant

Attributes

refresh_token[RW]

Public Class Methods

new(client_id, client_secret, refresh_token, scopes) click to toggle source
# File lib/zara4/api/communication/grant/refresh_token_grant.rb, line 7
def initialize(client_id, client_secret, refresh_token, scopes)
  super(client_id, client_secret, scopes)
  @refresh_token = refresh_token
end

Public Instance Methods

data() click to toggle source

Data to be sent when fetching grant tokens.

Calls superclass method
# File lib/zara4/api/communication/grant/refresh_token_grant.rb, line 24
def data
  data = super.data()
  data['refresh_token'] = @refresh_token
end
grant_type() click to toggle source

The type of this grant.

# File lib/zara4/api/communication/grant/refresh_token_grant.rb, line 16
def grant_type
  return 'refresh_token'
end