Class: GoogleCurrencyCalculator

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

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ GoogleCurrencyCalculator

Returns a new instance of GoogleCurrencyCalculator.



4
5
6
7
# File 'lib/google_currency_calculator.rb', line 4

def initialize(params={})
  @from = params[:from]
  @to = params[:to]
end

Instance Method Details

#valueObject



9
10
11
# File 'lib/google_currency_calculator.rb', line 9

def value
  parse_response(request)
end