Class: IGMarkets::Instrument::Currency

Inherits:
Model
  • Object
show all
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

#attributes

Instance Method Summary collapse

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_rateFloat

The base_exchange_rate attribute.

Returns:

  • (Float)

6
# File 'lib/ig_markets/instrument.rb', line 6

attribute :base_exchange_rate, Float

#codeObject

The code attribute.

Returns:

  • []


7
# File 'lib/ig_markets/instrument.rb', line 7

attribute :code

#exchange_rateFloat

The exchange_rate attribute.

Returns:

  • (Float)

8
# File 'lib/ig_markets/instrument.rb', line 8

attribute :exchange_rate, Float

#is_defaultBoolean

The is_default attribute.

Returns:


9
# File 'lib/ig_markets/instrument.rb', line 9

attribute :is_default, Boolean

#symbolObject

The symbol attribute.

Returns:

  • []


10
# File 'lib/ig_markets/instrument.rb', line 10

attribute :symbol