Class: OandaAPI::Resource::Instrument
- Inherits:
-
OandaAPI::ResourceBase
- Object
- OandaAPI::ResourceBase
- OandaAPI::Resource::Instrument
- Defined in:
- lib/oanda_api/resource/instrument.rb
Overview
Instrument value object. See the Oanda Developer Guide for information about Instruments.
Constant Summary
Constants inherited from OandaAPI::ResourceBase
OandaAPI::ResourceBase::NOT_PLURALIZED
Instance Attribute Summary collapse
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#halted ⇒ Object
(also: #halted?)
Returns the value of attribute halted.
-
#instrument ⇒ Object
(also: #name)
Returns the value of attribute instrument.
-
#margin_rate ⇒ Object
Returns the value of attribute margin_rate.
-
#max_trade_units ⇒ Object
Returns the value of attribute max_trade_units.
-
#max_trailing_stop ⇒ Object
Returns the value of attribute max_trailing_stop.
-
#min_trailing_stop ⇒ Object
Returns the value of attribute min_trailing_stop.
-
#pip ⇒ Object
Returns the value of attribute pip.
-
#precision ⇒ Object
Returns the value of attribute precision.
Attributes inherited from OandaAPI::ResourceBase
Method Summary
Methods inherited from OandaAPI::ResourceBase
class_from_symbol, #initialize, labs_resource?, pluralize, #to_json
Constructor Details
This class inherits a constructor from OandaAPI::ResourceBase
Instance Attribute Details
#display_name ⇒ Object
Returns the value of attribute display_name.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def display_name @display_name end |
#halted ⇒ Object Also known as: halted?
Returns the value of attribute halted.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def halted @halted end |
#instrument ⇒ Object Also known as: name
Returns the value of attribute instrument.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def instrument @instrument end |
#margin_rate ⇒ Object
Returns the value of attribute margin_rate.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def margin_rate @margin_rate end |
#max_trade_units ⇒ Object
Returns the value of attribute max_trade_units.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def max_trade_units @max_trade_units end |
#max_trailing_stop ⇒ Object
Returns the value of attribute max_trailing_stop.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def max_trailing_stop @max_trailing_stop end |
#min_trailing_stop ⇒ Object
Returns the value of attribute min_trailing_stop.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def min_trailing_stop @min_trailing_stop end |
#pip ⇒ Object
Returns the value of attribute pip.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def pip @pip end |
#precision ⇒ Object
Returns the value of attribute precision.
6 7 8 |
# File 'lib/oanda_api/resource/instrument.rb', line 6 def precision @precision end |