Class: Lutaml::Uml::Value

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasMembers

#members=

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ Value

rubocop:disable Rails/ActiveRecordAliases



15
16
17
# File 'lib/lutaml/uml/value.rb', line 15

def initialize(attributes = {})
  update_attributes(attributes)
end

Instance Attribute Details

#definitionObject

Returns the value of attribute definition.



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

def definition
  @definition
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end