Class: Reggora::VendorApiClient

Inherits:
Object
  • Object
show all
Defined in:
lib/reggora.rb

Instance Method Summary collapse

Constructor Details

#initialize(username, password, integration_token) ⇒ VendorApiClient

Returns a new instance of VendorApiClient.



49
50
51
52
53
# File 'lib/reggora.rb', line 49

def initialize(username, password, integration_token)
  authorization = ApiClient.authenticate(username, password, 'vendor')
  @api_client = Requests.new(authorization["token"], integration_token, 'vendor')
#  Todo
end