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