Class: AtendeSimplesAPI::V1::Client
- Inherits:
-
Object
- Object
- AtendeSimplesAPI::V1::Client
- Defined in:
- lib/atende_simples_api.rb
Constant Summary collapse
- DEFAULT_API_URI =
'https://app.atendesimples.com/api/'.freeze
Instance Attribute Summary collapse
-
#api_uri ⇒ Object
Returns the value of attribute api_uri.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize {|_self| ... } ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 |
# File 'lib/atende_simples_api.rb', line 11 def initialize @api_uri ||= DEFAULT_API_URI yield self end |
Instance Attribute Details
#api_uri ⇒ Object
Returns the value of attribute api_uri.
9 10 11 |
# File 'lib/atende_simples_api.rb', line 9 def api_uri @api_uri end |
#token ⇒ Object
Returns the value of attribute token.
9 10 11 |
# File 'lib/atende_simples_api.rb', line 9 def token @token end |