Module: Newsmlg2::Base::ConceptDefinitionGroup

Overview

A group of properties required to define a concept (concepts.py).

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/newsmlg2/base/concept_definition_group.rb', line 7

def self.included(klass)
  klass.class_eval do
    xml_element :names, xml: 'name',
                        type: Newsmlg2::Types::ConceptNameType, collection: true
    xml_element :definitions, xml: 'definition',
                              type: Newsmlg2::Types::Definition, collection: true
    xml_element :notes, xml: 'note',
                        type: Newsmlg2::Types::Note, collection: true
    xml_element :facets, xml: 'facet',
                         type: Newsmlg2::Types::Facet, collection: true
    xml_element :remote_infos, xml: 'remoteInfo',
                               type: Newsmlg2::Types::RemoteInfo, collection: true
    xml_element :hierarchy_infos, xml: 'hierarchyInfo',
                                  type: Newsmlg2::Types::HierarchyInfo, collection: true
  end
end