Class: BloombergCurrency::Models::Quote

Inherits:
Object
  • Object
show all
Defined in:
lib/bloomberg_currency/models/quote.rb

Overview

Quote Information

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#priceObject

Returns the value of attribute price.



6
7
8
# File 'lib/bloomberg_currency/models/quote.rb', line 6

def price
  @price
end

#price_datetimeObject

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_detailsObject

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