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