Module: MDEXClient::MData::RangeFilter::GeocodeReference
- Included in:
- BetweenFilter, GreaterThanFilter, LessThanFilter
- Defined in:
- lib/mdex_client/mdata/range_filter.rb
Instance Attribute Summary collapse
-
#geocode_reference ⇒ Object
Returns the value of attribute geocode_reference.
Instance Method Summary collapse
Instance Attribute Details
#geocode_reference ⇒ Object
Returns the value of attribute geocode_reference.
68 69 70 |
# File 'lib/mdex_client/mdata/range_filter.rb', line 68 def geocode_reference @geocode_reference end |
Instance Method Details
#init_geocode_reference_from_element! ⇒ Object
70 71 72 73 |
# File 'lib/mdex_client/mdata/range_filter.rb', line 70 def init_geocode_reference_from_element! gc = xpath("mdata:GeocodeReference") @geocode_reference = Geocode.new(gc) if gc end |
#write_geocode_reference!(xml) ⇒ Object
75 76 77 78 79 80 |
# File 'lib/mdex_client/mdata/range_filter.rb', line 75 def write_geocode_reference!(xml) return unless @geocode_reference xml.mdata :GeocodeReference, "Latitude" => @geocode_reference.latitude, "Longitude" => @geocode_reference.longitude end |