Module: Dcc::Base::RefTypeDefinition
- Included in:
- V3::RefTypeDefinition
- Defined in:
- lib/dcc/base/ref_type_definition.rb
Overview
dcc:refTypeDefinitionType (v3.4+) — declares a refType namespace and
source link. Used in administrativeData/refTypeDefinitions.
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/ref_type_definition.rb', line 8 def self.included(klass) klass.class_eval do attribute :ref_type, :string attribute :name, :text attribute :description, :richContent attribute :namespace, :string attribute :link, :string attribute :release, :string attribute :value, :string attribute :procedure, :string xml do namespace ::Dcc::Namespace::Dcc element "refTypeDefinition" ordered map_attribute "refType", to: :ref_type map_element "name", to: :name map_element "description", to: :description map_element "namespace", to: :namespace map_element "link", to: :link map_element "release", to: :release map_element "value", to: :value map_element "procedure", to: :procedure end end end |