Class: WeatherForecasts::Client::SelectGridpointCoordinatesQuery

Inherits:
Query
  • Object
show all
Includes:
QueryUtilities
Defined in:
lib/weather_forecasts/client/query/select_gridpoint_coordinates_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 included from QueryUtilities

#build_coordinates, #transform_coordinate_list

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



10
11
12
13
14
15
16
# File 'lib/weather_forecasts/client/query/select_gridpoint_coordinates_query.rb', line 10

def execute
  validate

  response = soap_client.call(:lat_lon_list_subgrid, :message => build_message)
  document = parse_xml(response)
  transform_coordinate_list(document)
end