Class: VaultOfSatoshi::API::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, api_secret) ⇒ Client

Returns a new instance of Client.



6
7
8
9
10
# File 'lib/vault_of_satoshi/api/client.rb', line 6

def initialize(api_key, api_secret)
  @public = VaultOfSatoshi::API::Public.new
  @info = VaultOfSatoshi::API::Info.new(api_key, api_secret)
  @trade = VaultOfSatoshi::API::Trade.new(api_key, api_secret)
end

Instance Attribute Details

#infoObject (readonly)

Returns the value of attribute info.



4
5
6
# File 'lib/vault_of_satoshi/api/client.rb', line 4

def info
  @info
end

#publicObject (readonly)

Returns the value of attribute public.



4
5
6
# File 'lib/vault_of_satoshi/api/client.rb', line 4

def public
  @public
end

#tradeObject (readonly)

Returns the value of attribute trade.



4
5
6
# File 'lib/vault_of_satoshi/api/client.rb', line 4

def trade
  @trade
end

Instance Method Details

#inspectObject



12
13
14
# File 'lib/vault_of_satoshi/api/client.rb', line 12

def inspect
  "#<#{self.class}:#{self.object_id}>"
end