Class: Coinigy::Exchange

Inherits:
Model
  • Object
show all
Defined in:
lib/coinigy/exchange.rb

Overview

Represents an Exchange

Instance Attribute Summary collapse

Attributes inherited from Model

#errors

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

#accountsObject

Accounts relation



16
17
18
# File 'lib/coinigy/exchange.rb', line 16

def accounts
  @accounts
end

#exch_balance_enabledObject

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_codeObject

Returns the value of attribute exch_code



4
5
6
# File 'lib/coinigy/exchange.rb', line 4

def exch_code
  @exch_code
end

#exch_feeObject

Returns the value of attribute exch_fee



4
5
6
# File 'lib/coinigy/exchange.rb', line 4

def exch_fee
  @exch_fee
end

#exch_idObject

Returns the value of attribute exch_id



4
5
6
# File 'lib/coinigy/exchange.rb', line 4

def exch_id
  @exch_id
end

#exch_nameObject

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_enabledObject

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_urlObject

Returns the value of attribute exch_url



4
5
6
# File 'lib/coinigy/exchange.rb', line 4

def exch_url
  @exch_url
end

#marketsObject

Markets relation



16
17
18
# File 'lib/coinigy/exchange.rb', line 16

def markets
  @markets
end

#subscriptionObject

Relations



16
17
18
# File 'lib/coinigy/exchange.rb', line 16

def subscription
  @subscription
end

Instance Method Details

#attributesObject



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