Class: VaultOfSatoshi::API::Client
- Inherits:
-
Object
- Object
- VaultOfSatoshi::API::Client
- Defined in:
- lib/vault_of_satoshi/api/client.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#public ⇒ Object
readonly
Returns the value of attribute public.
-
#trade ⇒ Object
readonly
Returns the value of attribute trade.
Instance Method Summary collapse
-
#initialize(api_key, api_secret) ⇒ Client
constructor
A new instance of Client.
- #inspect ⇒ Object
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
#info ⇒ Object (readonly)
Returns the value of attribute info.
4 5 6 |
# File 'lib/vault_of_satoshi/api/client.rb', line 4 def info @info end |
#public ⇒ Object (readonly)
Returns the value of attribute public.
4 5 6 |
# File 'lib/vault_of_satoshi/api/client.rb', line 4 def public @public end |
#trade ⇒ Object (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
#inspect ⇒ Object
12 13 14 |
# File 'lib/vault_of_satoshi/api/client.rb', line 12 def inspect "#<#{self.class}:#{self.object_id}>" end |