Class: Barometer::Query::Service::NoaaStation::Api
- Inherits:
-
Utils::Api
- Object
- Utils::Api
- Barometer::Query::Service::NoaaStation::Api
show all
- Defined in:
- lib/barometer/query/services/apis/noaa_station.rb
Instance Attribute Summary
Attributes inherited from Utils::Api
#query
Instance Method Summary
collapse
Methods inherited from Utils::Api
#current_query, #initialize, #unwrap_nodes
Instance Method Details
#get ⇒ Object
14
15
16
|
# File 'lib/barometer/query/services/apis/noaa_station.rb', line 14
def get
Utils::Get.call(url, params).content
end
|
#params ⇒ Object
10
11
12
|
# File 'lib/barometer/query/services/apis/noaa_station.rb', line 10
def params
{ textField1: latitude, textField2: longitude }
end
|
#url ⇒ Object
6
7
8
|
# File 'lib/barometer/query/services/apis/noaa_station.rb', line 6
def url
'http://forecast.weather.gov/MapClick.php'
end
|