Method: Barometer::Query::Base#initialize
- Defined in:
- lib/barometer/query/base.rb
#initialize(query, units = :metric) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 12 |
# File 'lib/barometer/query/base.rb', line 6 def initialize(query, units=:metric) @q = query.dup @units = units detect_format freeze_query @conversions = {} end |