Class: Taxy::Client
- Inherits:
-
Object
- Object
- Taxy::Client
- Includes:
- Estimate, User, Connection
- Defined in:
- lib/client.rb,
lib/client/user.rb,
lib/client/estimate.rb
Defined Under Namespace
Constant Summary
Constants included from Connection
Instance Attribute Summary collapse
-
#bearer_token ⇒ Object
Returns the value of attribute bearer_token.
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from User
Methods included from Estimate
Methods included from Connection
#delete, #get, #patch, #post, #put
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
17 18 19 20 21 |
# File 'lib/client.rb', line 17 def initialize( = {}) .each do |key, value| send(:"#{key}=", value) end end |
Instance Attribute Details
#bearer_token ⇒ Object
Returns the value of attribute bearer_token.
15 16 17 |
# File 'lib/client.rb', line 15 def bearer_token @bearer_token end |
#debug ⇒ Object
Returns the value of attribute debug.
15 16 17 |
# File 'lib/client.rb', line 15 def debug @debug end |