Class: Lutaml::Uml::TopElementAttribute

Inherits:
Object
  • Object
show all
Includes:
HasAttributes, HasMembers
Defined in:
lib/lutaml/uml/top_element_attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasMembers

#members=

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ TopElementAttribute

rubocop:disable Rails/ActiveRecordAliases



22
23
24
25
# File 'lib/lutaml/uml/top_element_attribute.rb', line 22

def initialize(attributes = {})
  @visibility = "public"
  update_attributes(attributes)
end

Instance Attribute Details

#cardinalityObject

Returns the value of attribute cardinality.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def cardinality
  @cardinality
end

#containObject

Returns the value of attribute contain.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def contain
  @contain
end

#definitionObject

Returns the value of attribute definition.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def definition
  @definition
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def id
  @id
end

#is_derivedObject

Returns the value of attribute is_derived.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def is_derived
  @is_derived
end

#keywordObject

Returns the value of attribute keyword.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def keyword
  @keyword
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def name
  @name
end

#staticObject

Returns the value of attribute static.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def static
  @static
end

#typeObject

Returns the value of attribute type.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def type
  @type
end

#visibilityObject

Returns the value of attribute visibility.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def visibility
  @visibility
end

#xmi_idObject

Returns the value of attribute xmi_id.



9
10
11
# File 'lib/lutaml/uml/top_element_attribute.rb', line 9

def xmi_id
  @xmi_id
end