Class: Commercelayer::Client
- Inherits:
-
Object
- Object
- Commercelayer::Client
- Defined in:
- lib/commercelayer/client.rb
Instance Method Summary collapse
- #authorize! ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
6 7 8 9 10 11 |
# File 'lib/commercelayer/client.rb', line 6 def initialize(={}) @client_id = [:client_id] @client_secret = [:client_secret] @scope = [:scope] @site = [:site] end |
Instance Method Details
#authorize! ⇒ Object
13 14 15 16 |
# File 'lib/commercelayer/client.rb', line 13 def Resource.site = @site + "/api/" Resource. = get_access_token end |