Module: Xmi::RootAttributes

Included in:
Root, Root2013
Defined in:
lib/xmi/root.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/xmi/root.rb', line 9

def self.included(klass)
  klass.class_eval do
    attribute :id, Shale::Type::String
    attribute :label, Shale::Type::String
    attribute :uuid, Shale::Type::String
    attribute :href, Shale::Type::String
    attribute :idref, Shale::Type::String
    attribute :type, Shale::Type::String
    attribute :documentation, Documentation
  end
end