Class: Coinigy::Exchange
Overview
Represents an Exchange
Instance Attribute Summary collapse
-
#accounts ⇒ Object
Accounts relation.
-
#exch_balance_enabled ⇒ Object
Returns the value of attribute exch_balance_enabled.
-
#exch_code ⇒ Object
Returns the value of attribute exch_code.
-
#exch_fee ⇒ Object
Returns the value of attribute exch_fee.
-
#exch_id ⇒ Object
Returns the value of attribute exch_id.
-
#exch_name ⇒ Object
Returns the value of attribute exch_name.
-
#exch_trade_enabled ⇒ Object
Returns the value of attribute exch_trade_enabled.
-
#exch_url ⇒ Object
Returns the value of attribute exch_url.
-
#markets ⇒ Object
Markets relation.
-
#subscription ⇒ Object
Relations.
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#errors?, #initialize, #inspect, #save
Constructor Details
This class inherits a constructor from Coinigy::Model
Instance Attribute Details
#accounts ⇒ Object
Accounts relation
16 17 18 |
# File 'lib/coinigy/exchange.rb', line 16 def accounts @accounts end |
#exch_balance_enabled ⇒ Object
Returns the value of attribute exch_balance_enabled
4 5 6 |
# File 'lib/coinigy/exchange.rb', line 4 def exch_balance_enabled @exch_balance_enabled end |
#exch_code ⇒ Object
Returns the value of attribute exch_code
4 5 6 |
# File 'lib/coinigy/exchange.rb', line 4 def exch_code @exch_code end |
#exch_fee ⇒ Object
Returns the value of attribute exch_fee
4 5 6 |
# File 'lib/coinigy/exchange.rb', line 4 def exch_fee @exch_fee end |
#exch_id ⇒ Object
Returns the value of attribute exch_id
4 5 6 |
# File 'lib/coinigy/exchange.rb', line 4 def exch_id @exch_id end |
#exch_name ⇒ Object
Returns the value of attribute exch_name
4 5 6 |
# File 'lib/coinigy/exchange.rb', line 4 def exch_name @exch_name end |
#exch_trade_enabled ⇒ Object
Returns the value of attribute exch_trade_enabled
4 5 6 |
# File 'lib/coinigy/exchange.rb', line 4 def exch_trade_enabled @exch_trade_enabled end |
#exch_url ⇒ Object
Returns the value of attribute exch_url
4 5 6 |
# File 'lib/coinigy/exchange.rb', line 4 def exch_url @exch_url end |
#markets ⇒ Object
Markets relation
16 17 18 |
# File 'lib/coinigy/exchange.rb', line 16 def markets @markets end |
#subscription ⇒ Object
Relations
16 17 18 |
# File 'lib/coinigy/exchange.rb', line 16 def subscription @subscription end |
Instance Method Details
#attributes ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/coinigy/exchange.rb', line 18 def attributes { 'exch_id' => exch_id, 'exch_name' => exch_name, 'exch_code' => exch_code, 'exch_fee' => exch_fee, 'exch_trade_enabled' => exch_trade_enabled, 'exch_balance_enabled' => exch_balance_enabled, 'exch_url' => exch_url } end |