Class: Taxy::Client

Inherits:
Object
  • Object
show all
Includes:
Estimate, User, Connection
Defined in:
lib/client.rb,
lib/client/user.rb,
lib/client/estimate.rb

Defined Under Namespace

Modules: Estimate, User

Constant Summary

Constants included from Connection

Taxy::Connection::BASE_URI

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from User

#user

Methods included from Estimate

#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(options = {})
  options.each do |key, value|
    send(:"#{key}=", value)
  end
end

Instance Attribute Details

#bearer_tokenObject

Returns the value of attribute bearer_token.



15
16
17
# File 'lib/client.rb', line 15

def bearer_token
  @bearer_token
end

#debugObject

Returns the value of attribute debug.



15
16
17
# File 'lib/client.rb', line 15

def debug
  @debug
end