Class: Infuser::Client
- Inherits:
-
Object
- Object
- Infuser::Client
- Defined in:
- lib/infuser/client.rb
Constant Summary collapse
- TABLES =
%w( contact company invoices invoice_items order_items )
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
Instance Method Summary collapse
-
#initialize(access_token) ⇒ Client
constructor
A new instance of Client.
- #inspect ⇒ Object
Constructor Details
#initialize(access_token) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 |
# File 'lib/infuser/client.rb', line 8 def initialize access_token @access_token = access_token || raise(Infuser::ArgumentError, 'You must specify an access token.') setup_associations self end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/infuser/client.rb', line 6 def access_token @access_token end |
Instance Method Details
#inspect ⇒ Object
14 15 16 |
# File 'lib/infuser/client.rb', line 14 def inspect "#<#{self.class.name} access_token: #{access_token}>" end |