Class: Lutaml::XMI::AttributeDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/lutaml/xmi/liquid_drops/attribute_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ AttributeDrop

rubocop:disable Lint/MissingSuper



6
7
8
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 6

def initialize(model) # rubocop:disable Lint/MissingSuper
  @model = model
end

Instance Method Details

#associationObject



38
39
40
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 38

def association
  @model[:association]
end

#cardinalityObject



30
31
32
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 30

def cardinality
  ::Lutaml::XMI::CardinalityDrop.new(@model[:cardinality])
end

#definitionObject



34
35
36
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 34

def definition
  @model[:definition]
end

#idObject



10
11
12
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 10

def id
  @model[:id]
end

#is_derivedObject



26
27
28
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 26

def is_derived
  @model[:is_derived]
end

#nameObject



14
15
16
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 14

def name
  @model[:name]
end

#typeObject



18
19
20
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 18

def type
  @model[:type]
end

#type_nsObject



42
43
44
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 42

def type_ns
  @model[:type_ns]
end

#xmi_idObject



22
23
24
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 22

def xmi_id
  @model[:xmi_id]
end