Class: BloombergCurrency::Models::Quote
- Inherits:
-
Object
- Object
- BloombergCurrency::Models::Quote
- Defined in:
- lib/bloomberg_currency/models/quote.rb
Overview
Quote Information
Instance Attribute Summary collapse
-
#price ⇒ Object
Returns the value of attribute price.
-
#price_datetime ⇒ Object
Returns the value of attribute price_datetime.
-
#quote_details ⇒ Object
Returns the value of attribute quote_details.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Quote
constructor
A new instance of Quote.
Constructor Details
#initialize(hash) ⇒ Quote
Returns a new instance of Quote.
7 8 9 10 11 |
# File 'lib/bloomberg_currency/models/quote.rb', line 7 def initialize(hash) @price = hash[:price] @price_datetime = hash[:price_datetime] @quote_details = hash[:quote_details] end |
Instance Attribute Details
#price ⇒ Object
Returns the value of attribute price.
6 7 8 |
# File 'lib/bloomberg_currency/models/quote.rb', line 6 def price @price end |
#price_datetime ⇒ Object
Returns the value of attribute price_datetime.
6 7 8 |
# File 'lib/bloomberg_currency/models/quote.rb', line 6 def price_datetime @price_datetime end |
#quote_details ⇒ Object
Returns the value of attribute quote_details.
6 7 8 |
# File 'lib/bloomberg_currency/models/quote.rb', line 6 def quote_details @quote_details end |