Module: Dcc::Base::Location
- Included in:
- V2::Location, V3::Location
- Defined in:
- lib/dcc/base/location.rb
Overview
dcc:locationType — physical address. Choice of city, countryCode,
postCode, postOfficeBox, state, street, streetNo, further.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/dcc/base/location.rb', line 8 def self.included(klass) klass.class_eval do attribute :city, :string attribute :country_code, :string attribute :post_code, :string attribute :post_office_box, :string attribute :state, :string attribute :street, :string attribute :street_no, :string attribute :further, :string xml do namespace ::Dcc::Namespace::Dcc element "location" ordered map_element "city", to: :city map_element "countryCode", to: :country_code map_element "postCode", to: :post_code map_element "postOfficeBox", to: :post_office_box map_element "state", to: :state map_element "street", to: :street map_element "streetNo", to: :street_no map_element "further", to: :further end end end |