Class: OpenMeteo::Search
- Inherits:
-
Object
- Object
- OpenMeteo::Search
- Defined in:
- lib/open_meteo/search.rb,
lib/open_meteo/search/variables.rb
Overview
Perform a search request to the Open Meteo Geocoding API
Returns a list of possible locations based of a location name string open-meteo.com/en/docs/geocoding-api
Defined Under Namespace
Classes: Variables
Instance Method Summary collapse
- #get(name:, variables:) ⇒ Object
-
#initialize(config: OpenMeteo::Client::Config.new(host: "geocoding-api.open-meteo.com"), client: OpenMeteo::Client.new(config:), response_wrapper: OpenMeteo::ResponseWrapper.new(config:)) ⇒ Search
constructor
A new instance of Search.
Constructor Details
#initialize(config: OpenMeteo::Client::Config.new(host: "geocoding-api.open-meteo.com"), client: OpenMeteo::Client.new(config:), response_wrapper: OpenMeteo::ResponseWrapper.new(config:)) ⇒ Search
Returns a new instance of Search.
11 12 13 14 15 16 17 18 |
# File 'lib/open_meteo/search.rb', line 11 def initialize( config: OpenMeteo::Client::Config.new(host: "geocoding-api.open-meteo.com"), client: OpenMeteo::Client.new(config:), response_wrapper: OpenMeteo::ResponseWrapper.new(config:) ) @client = client @response_wrapper = response_wrapper end |