Class: Datacite::Mapping::GeoLocationBoxNode

Inherits:
GeoLocationNode
  • Object
show all
Defined in:
lib/datacite/mapping/geo_location_box.rb

Overview

XML mapping node for <geoLocationBox/>

Instance Attribute Summary

Attributes inherited from GeoLocationNode

#coord_elements, #geom_class

Instance Method Summary collapse

Methods inherited from GeoLocationNode

#datacite_3?, #extract_attr_value, #set_attr_value

Constructor Details

#initialize(*args) ⇒ GeoLocationBoxNode

Returns a new instance of GeoLocationBoxNode.



136
137
138
139
140
141
142
143
# File 'lib/datacite/mapping/geo_location_box.rb', line 136

def initialize(*args)
  @geom_class = GeoLocationBox
  @coord_elements = { west_longitude: 'westBoundLongitude',
                      east_longitude: 'eastBoundLongitude',
                      south_latitude: 'southBoundLatitude',
                      north_latitude: 'northBoundLatitude' }.freeze
  super
end