class GetWind
Constants
- WSDL
Public Class Methods
new()
click to toggle source
Calls superclass method
NOAA_SOAP::new
# File lib/get_wind.rb, line 7 def initialize super WSDL end
Public Instance Methods
client()
click to toggle source
Calls superclass method
# File lib/get_wind.rb, line 11 def client super end
pull_data(station_id)
click to toggle source
# File lib/get_wind.rb, line 15 def pull_data (station_id) message = {stationId: station_id, beginDate: GMT.gmt_less_1h, endDate: GMT.gmt_now, \ unit: "Meters", timeZone: 0} response = self.pull_response(:get_wind_and_metadata, message) response.to_hash[:wind_measurements][:data][:item] #this returns a hash of the data points. end