Class: Lutaml::XMI::EnumDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::XMI::EnumDrop
- Defined in:
- lib/lutaml/xmi/liquid_drops/enum_drop.rb
Instance Method Summary collapse
- #definition ⇒ Object
-
#initialize(model) ⇒ EnumDrop
constructor
rubocop:disable Lint/MissingSuper.
- #name ⇒ Object
- #stereotype ⇒ Object
- #values ⇒ Object
- #xmi_id ⇒ Object
Constructor Details
#initialize(model) ⇒ EnumDrop
rubocop:disable Lint/MissingSuper
6 7 8 |
# File 'lib/lutaml/xmi/liquid_drops/enum_drop.rb', line 6 def initialize(model) # rubocop:disable Lint/MissingSuper @model = model end |
Instance Method Details
#definition ⇒ Object
24 25 26 |
# File 'lib/lutaml/xmi/liquid_drops/enum_drop.rb', line 24 def definition @model[:definition] end |
#name ⇒ Object
14 15 16 |
# File 'lib/lutaml/xmi/liquid_drops/enum_drop.rb', line 14 def name @model[:name] end |
#stereotype ⇒ Object
28 29 30 |
# File 'lib/lutaml/xmi/liquid_drops/enum_drop.rb', line 28 def stereotype @model[:stereotype] end |
#values ⇒ Object
18 19 20 21 22 |
# File 'lib/lutaml/xmi/liquid_drops/enum_drop.rb', line 18 def values @model[:values].map do |value| ::Lutaml::XMI::EnumOwnedLiteralDrop.new(value) end end |
#xmi_id ⇒ Object
10 11 12 |
# File 'lib/lutaml/xmi/liquid_drops/enum_drop.rb', line 10 def xmi_id @model[:xmi_id] end |