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) click to toggle source
# File lib/get_water_level.rb, line 15
def pull_data (station_id)
        message = {stationId: station_id, 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