Class: EODData::Client::CentsPerPoundPrice

Inherits:
Object
  • Object
show all
Defined in:
lib/eod_data/client.rb

Overview

:nodoc:

Instance Method Summary collapse

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

#callObject



129
130
131
# File 'lib/eod_data/client.rb', line 129

def call
  @price.to_f / 100
end