Class: NDFD::Client::SelectQuery

Inherits:
Query
  • Object
show all
Includes:
QueryUtilities
Defined in:
lib/ndfd/client/query/select_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 NDFD::Client::Query

Instance Method Details

#executeObject


15
16
17
18
19
20
21
# File 'lib/ndfd/client/query/select_query.rb', line 15

def execute
  validate

  response = soap_client.call(:ndf_dgen_lat_lon_list, :message => build_message)
  document = Nokogiri::XML(response.body[:ndf_dgen_lat_lon_list_response][:dwml_out])
  transform_to_hash(document)
end