Class: Owa::Requests::Options::City
- Inherits:
-
Object
- Object
- Owa::Requests::Options::City
- Defined in:
- lib/owa/requests/options/city.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(city, country_code = nil) ⇒ City
constructor
A new instance of City.
Constructor Details
#initialize(city, country_code = nil) ⇒ City
Returns a new instance of City.
5 6 7 8 |
# File 'lib/owa/requests/options/city.rb', line 5 def initialize(city, country_code=nil) @city = city @country_code = country_code end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/owa/requests/options/city.rb', line 10 def call { q: query } end |