Class: Client

Inherits:
Object
  • Object
show all
Defined in:
lib/deno92/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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_secretObject (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