Class: Lutaml::XMI::AttributeDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::XMI::AttributeDrop
- Defined in:
- lib/lutaml/xmi/liquid_drops/attribute_drop.rb
Instance Method Summary collapse
- #association ⇒ Object
- #cardinality ⇒ Object
- #definition ⇒ Object
- #id ⇒ Object
-
#initialize(model) ⇒ AttributeDrop
constructor
rubocop:disable Lint/MissingSuper.
- #is_derived ⇒ Object
- #name ⇒ Object
- #type ⇒ Object
- #type_ns ⇒ Object
- #xmi_id ⇒ Object
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
#association ⇒ Object
38 39 40 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 38 def association @model[:association] end |
#cardinality ⇒ Object
30 31 32 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 30 def cardinality ::Lutaml::XMI::CardinalityDrop.new(@model[:cardinality]) end |
#definition ⇒ Object
34 35 36 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 34 def definition @model[:definition] end |
#id ⇒ Object
10 11 12 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 10 def id @model[:id] end |
#is_derived ⇒ Object
26 27 28 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 26 def is_derived @model[:is_derived] end |
#name ⇒ Object
14 15 16 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 14 def name @model[:name] end |
#type ⇒ Object
18 19 20 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 18 def type @model[:type] end |
#type_ns ⇒ Object
42 43 44 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 42 def type_ns @model[:type_ns] end |
#xmi_id ⇒ Object
22 23 24 |
# File 'lib/lutaml/xmi/liquid_drops/attribute_drop.rb', line 22 def xmi_id @model[:xmi_id] end |