Class: AtendeSimplesAPI::V1::Client

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

Constant Summary collapse

DEFAULT_API_URI =
'https://app.atendesimples.com/api/'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Client

Returns a new instance of Client.

Yields:

  • (_self)

Yield Parameters:



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_uriObject

Returns the value of attribute api_uri.



9
10
11
# File 'lib/atende_simples_api.rb', line 9

def api_uri
  @api_uri
end

#tokenObject

Returns the value of attribute token.



9
10
11
# File 'lib/atende_simples_api.rb', line 9

def token
  @token
end