Class: GoogleCurrencyCalculator
- Inherits:
-
Object
- Object
- GoogleCurrencyCalculator
- Defined in:
- lib/google_currency_calculator.rb
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ GoogleCurrencyCalculator
constructor
A new instance of GoogleCurrencyCalculator.
- #value ⇒ Object
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
#value ⇒ Object
9 10 11 |
# File 'lib/google_currency_calculator.rb', line 9 def value parse_response(request) end |