Class: Distimo::Client
- Inherits:
-
Object
- Object
- Distimo::Client
- Includes:
- API, HTTParty
- Defined in:
- lib/distimo/client.rb
Constant Summary
Constants included from API
Instance Attribute Summary collapse
-
#password ⇒ Object
Returns the value of attribute password.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#token ⇒ Object
Returns the value of attribute token.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(opts) ⇒ Client
Returns a new instance of Client.
11 12 13 |
# File 'lib/distimo/client.rb', line 11 def initialize opts opts.each {|k,v| send("#{k}=",v)} end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/distimo/client.rb', line 9 def password @password end |
#private_key ⇒ Object
Returns the value of attribute private_key.
9 10 11 |
# File 'lib/distimo/client.rb', line 9 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
9 10 11 |
# File 'lib/distimo/client.rb', line 9 def public_key @public_key end |
#token ⇒ Object
Returns the value of attribute token.
9 10 11 |
# File 'lib/distimo/client.rb', line 9 def token @token end |
#username ⇒ Object
Returns the value of attribute username.
9 10 11 |
# File 'lib/distimo/client.rb', line 9 def username @username end |