Class: EODData::Client::CentsPerPoundPrice
- Inherits:
-
Object
- Object
- EODData::Client::CentsPerPoundPrice
- Defined in:
- lib/eod_data/client.rb
Overview
:nodoc:
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(price) ⇒ CentsPerPoundPrice
constructor
A new instance of CentsPerPoundPrice.
Constructor Details
#initialize(price) ⇒ CentsPerPoundPrice
Returns a new instance of CentsPerPoundPrice.
125 126 127 |
# File 'lib/eod_data/client.rb', line 125 def initialize(price) @price = price end |
Instance Method Details
#call ⇒ Object
129 130 131 |
# File 'lib/eod_data/client.rb', line 129 def call @price.to_f / 100 end |