Class: OandaAPI::Resource::Price
- Inherits:
-
OandaAPI::ResourceBase
- Object
- OandaAPI::ResourceBase
- OandaAPI::Resource::Price
- Defined in:
- lib/oanda_api/resource/price.rb
Overview
Price value object. See the Oanda Developer Guide for information about Prices.
Constant Summary
Constants inherited from OandaAPI::ResourceBase
OandaAPI::ResourceBase::NOT_PLURALIZED
Instance Attribute Summary collapse
-
#ask ⇒ Object
Returns the value of attribute ask.
-
#bid ⇒ Object
Returns the value of attribute bid.
-
#instrument ⇒ Object
Returns the value of attribute instrument.
-
#time ⇒ Object
Returns the value of attribute time.
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
#ask ⇒ Object
Returns the value of attribute ask.
6 7 8 |
# File 'lib/oanda_api/resource/price.rb', line 6 def ask @ask end |
#bid ⇒ Object
Returns the value of attribute bid.
6 7 8 |
# File 'lib/oanda_api/resource/price.rb', line 6 def bid @bid end |
#instrument ⇒ Object
Returns the value of attribute instrument.
6 7 8 |
# File 'lib/oanda_api/resource/price.rb', line 6 def instrument @instrument end |
#time ⇒ Object
Returns the value of attribute time.
6 7 8 |
# File 'lib/oanda_api/resource/price.rb', line 6 def time @time end |