Module: Dcc::Base::CoreData
- Included in:
- V2::CoreData, V3::CoreData
- Defined in:
- lib/dcc/base/core_data.rb
Overview
dcc:coreDataType — core administrative metadata: country, languages,
unique identifier, dates, previous report, identifications.
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 34 35 36 37 38 39 40 41 |
# File 'lib/dcc/base/core_data.rb', line 8 def self.included(klass) klass.class_eval do attribute :id, :string attribute :ref_id, :string attribute :ref_type, :string attribute :country_code_iso_3166_1, ::Dcc::Type::IsoCountryCode attribute :used_lang_code_iso_639_1, ::Dcc::Type::IsoLanguageCode, collection: true attribute :mandatory_lang_code_iso_639_1, ::Dcc::Type::IsoLanguageCode, collection: true attribute :unique_identifier, :string attribute :identifications, :identifications attribute :receipt_date, :date attribute :begin_performance_date, :date attribute :end_performance_date, :date attribute :previous_report, :previousReport xml do namespace ::Dcc::Namespace::Dcc element "coreData" ordered map_attribute "id", to: :id map_attribute "refId", to: :ref_id map_attribute "refType", to: :ref_type map_element "countryCodeISO3166_1", to: :country_code_iso_3166_1 map_element "usedLangCodeISO639_1", to: :used_lang_code_iso_639_1 map_element "mandatoryLangCodeISO639_1", to: :mandatory_lang_code_iso_639_1 map_element "uniqueIdentifier", to: :unique_identifier map_element "identifications", to: :identifications map_element "receiptDate", to: :receipt_date map_element "beginPerformanceDate", to: :begin_performance_date map_element "endPerformanceDate", to: :end_performance_date map_element "previousReport", to: :previous_report end end end |