Class: WeatherForecasts::Client::SelectCoordinatesByZipQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/weather_forecasts/client/query/select_coordinates_by_zip_query.rb

Constant Summary

Constants inherited from Query

Query::FORECAST_ELEMENTS

Instance Attribute Summary

Attributes inherited from Query

#conditions, #select_attributes, #soap_client

Instance Method Summary collapse

Methods inherited from Query

#initialize, properties, property, selection_attributes, set_selection_attributes, #validate, #where

Constructor Details

This class inherits a constructor from WeatherForecasts::Client::Query

Instance Method Details

#executeObject



6
7
8
9
10
11
12
# File 'lib/weather_forecasts/client/query/select_coordinates_by_zip_query.rb', line 6

def execute
  validate

  response = soap_client.call(:lat_lon_list_zip_code, :message => build_message)
  document = parse_xml(response)
  transform_document_to_mapped_list(document)
end