Module: FixerIo::Response
- Defined in:
- lib/fixer_io/response.rb,
lib/fixer_io/response/latest_rates.rb,
lib/fixer_io/response/historical_rates.rb
Overview
API Responses.
Defined Under Namespace
Classes: HistoricalRates, LatestRates
Class Method Summary collapse
-
.symbolize_hash_keys(hash) ⇒ Hash<Symbol, Object>
private
Make String Hash keys into Symbols.
Class Method Details
.symbolize_hash_keys(hash) ⇒ Hash<Symbol, Object>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Make String Hash keys into Symbols.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fixer_io/response.rb', line 13 def symbolize_hash_keys(hash) hash.keys.each do |key| hash[(begin key.downcase.to_sym rescue StandardError key end) || key] = hash.delete(key) end hash end |