Class: Distimo::Client

Inherits:
Object
  • Object
show all
Includes:
API, HTTParty
Defined in:
lib/distimo/client.rb

Constant Summary

Constants included from API

API::METHODS

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#private_keyObject

Returns the value of attribute private_key.



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

def private_key
  @private_key
end

#public_keyObject

Returns the value of attribute public_key.



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

def public_key
  @public_key
end

#tokenObject

Returns the value of attribute token.



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

def token
  @token
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end