Class: IGMarkets::Instrument::Currency
- Defined in:
- lib/ig_markets/instrument.rb
Overview
Contains details on a currency used by an instrument. Returned by #currencies.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#base_exchange_rate ⇒ Float
The base_exchange_rate attribute.
-
#code ⇒ Object
The code attribute.
-
#exchange_rate ⇒ Float
The exchange_rate attribute.
-
#is_default ⇒ Boolean
The is_default attribute.
-
#symbol ⇒ Object
The symbol attribute.
Methods inherited from Model
#==, allowed_values, attribute, attribute_type, attribute_value_allowed?, defined_attribute_names, deprecated_attribute, #initialize, #initialize_copy, #inspect, #to_h, valid_attribute?
Constructor Details
This class inherits a constructor from IGMarkets::Model
Instance Method Details
#base_exchange_rate ⇒ Float
The base_exchange_rate attribute.
6 |
# File 'lib/ig_markets/instrument.rb', line 6 attribute :base_exchange_rate, Float |
#code ⇒ Object
The code attribute.
7 |
# File 'lib/ig_markets/instrument.rb', line 7 attribute :code |
#exchange_rate ⇒ Float
The exchange_rate attribute.
8 |
# File 'lib/ig_markets/instrument.rb', line 8 attribute :exchange_rate, Float |
#is_default ⇒ Boolean
The is_default attribute.
9 |
# File 'lib/ig_markets/instrument.rb', line 9 attribute :is_default, Boolean |
#symbol ⇒ Object
The symbol attribute.
10 |
# File 'lib/ig_markets/instrument.rb', line 10 attribute :symbol |