Class: Lutaml::Uml::Node::Attribute

Inherits:
Base
  • Object
show all
Includes:
HasName, HasType
Defined in:
lib/lutaml/uml/node/attribute.rb

Direct Known Subclasses

Operation

Instance Attribute Summary collapse

Attributes included from HasType

#type

Attributes included from HasName

#name

Attributes inherited from Base

#parent

Instance Method Summary collapse

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ Attribute

Returns a new instance of Attribute.



14
15
16
17
18
# File 'lib/lutaml/uml/node/attribute.rb', line 14

def initialize(attributes = {})
  @access = "public"

  super
end

Instance Attribute Details

#accessObject

Returns the value of attribute access.



20
21
22
# File 'lib/lutaml/uml/node/attribute.rb', line 20

def access
  @access
end

#staticObject

Returns the value of attribute static.



20
21
22
# File 'lib/lutaml/uml/node/attribute.rb', line 20

def static
  @static
end