Class: Client
- Inherits:
-
Object
- Object
- Client
- Defined in:
- lib/deno92/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
readonly
Returns the value of attribute api_secret.
Instance Method Summary collapse
-
#initialize(api_key = '', api_secret = '') ⇒ Client
constructor
A new instance of Client.
- #set_api_key(api_key) ⇒ Object
- #set_api_secret(api_secret) ⇒ Object
Constructor Details
#initialize(api_key = '', api_secret = '') ⇒ Client
Returns a new instance of Client.
3 4 5 6 |
# File 'lib/deno92/client.rb', line 3 def initialize api_key = '',api_secret = '' @api_key = api_key @api_secret = api_secret end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
2 3 4 |
# File 'lib/deno92/client.rb', line 2 def api_key @api_key end |
#api_secret ⇒ Object (readonly)
Returns the value of attribute api_secret.
2 3 4 |
# File 'lib/deno92/client.rb', line 2 def api_secret @api_secret end |
Instance Method Details
#set_api_key(api_key) ⇒ Object
8 9 10 |
# File 'lib/deno92/client.rb', line 8 def set_api_key(api_key) @api_key = api_key end |
#set_api_secret(api_secret) ⇒ Object
11 12 13 |
# File 'lib/deno92/client.rb', line 11 def set_api_secret(api_secret) @api_secret = api_secret end |