class NoaaWeatherClient::Responses::LatLonList
Public Class Methods
new(response)
click to toggle source
# File lib/noaa_weather_client/responses/lat_lon_list.rb, line 11 def initialize(response) @source = XmlParserFactory.build_parser.parse(response) validate! @source, :dwml end
Public Instance Methods
latitude()
click to toggle source
# File lib/noaa_weather_client/responses/lat_lon_list.rb, line 16 def latitude @latitude ||= latLonList.split(",").first.to_f end
longitude()
click to toggle source
# File lib/noaa_weather_client/responses/lat_lon_list.rb, line 20 def longitude @longitude ||= latLonList.split(",").last.to_f end