Class: Lutaml::XMI::KlassDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::XMI::KlassDrop
- Defined in:
- lib/lutaml/xmi/liquid_drops/klass_drop.rb
Instance Method Summary collapse
- #associations ⇒ Object
- #attributes ⇒ Object
- #constraints ⇒ Object
- #definition ⇒ Object
-
#initialize(model) ⇒ KlassDrop
constructor
rubocop:disable Lint/MissingSuper.
- #is_abstract ⇒ Object
- #name ⇒ Object
- #operations ⇒ Object
- #package ⇒ Object
- #stereotype ⇒ Object
- #type ⇒ Object
- #xmi_id ⇒ Object
Constructor Details
#initialize(model) ⇒ KlassDrop
rubocop:disable Lint/MissingSuper
6 7 8 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 6 def initialize(model) # rubocop:disable Lint/MissingSuper @model = model end |
Instance Method Details
#associations ⇒ Object
32 33 34 35 36 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 32 def associations @model[:associations]&.map do |association| ::Lutaml::XMI::AssociationDrop.new(association) end end |
#attributes ⇒ Object
26 27 28 29 30 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 26 def attributes @model[:attributes]&.map do |attribute| ::Lutaml::XMI::AttributeDrop.new(attribute) end end |
#constraints ⇒ Object
44 45 46 47 48 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 44 def constraints @model[:constraints]&.map do |constraint| ::Lutaml::XMI::ConstraintDrop.new(constraint) end end |
#definition ⇒ Object
54 55 56 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 54 def definition @model[:definition] end |
#is_abstract ⇒ Object
50 51 52 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 50 def is_abstract @model[:is_abstract] end |
#name ⇒ Object
14 15 16 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 14 def name @model[:name] end |
#operations ⇒ Object
38 39 40 41 42 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 38 def operations @model[:operations]&.map do |operation| ::Lutaml::XMI::OperationDrop.new(operation) end end |
#package ⇒ Object
18 19 20 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 18 def package ::Lutaml::XMI::PackageDrop.new(@model[:package]) end |
#stereotype ⇒ Object
58 59 60 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 58 def stereotype @model[:stereotype] end |
#type ⇒ Object
22 23 24 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 22 def type @model[:type] end |
#xmi_id ⇒ Object
10 11 12 |
# File 'lib/lutaml/xmi/liquid_drops/klass_drop.rb', line 10 def xmi_id @model[:xmi_id] end |