Class: Lutaml::XMI::EnumOwnedLiteralDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::XMI::EnumOwnedLiteralDrop
show all
- Includes:
- Parsers::XMIBase
- Defined in:
- lib/lutaml/xmi/liquid_drops/enum_owned_literal_drop.rb
Instance Method Summary
collapse
#get_guidance, included, #set_xmi_model
Constructor Details
rubocop:disable Lint/MissingSuper
8
9
10
11
12
13
|
# File 'lib/lutaml/xmi/liquid_drops/enum_owned_literal_drop.rb', line 8
def initialize(model, options = {}) @model = model
@options = options
@xmi_root_model = options[:xmi_root_model]
@xmi_cache = options[:xmi_cache]
end
|
Instance Method Details
#definition ⇒ Object
24
25
26
|
# File 'lib/lutaml/xmi/liquid_drops/enum_owned_literal_drop.rb', line 24
def definition
lookup_attribute_documentation(@model.id)
end
|
#name ⇒ Object
15
16
17
|
# File 'lib/lutaml/xmi/liquid_drops/enum_owned_literal_drop.rb', line 15
def name
@model.name
end
|
#type ⇒ Object
19
20
21
22
|
# File 'lib/lutaml/xmi/liquid_drops/enum_owned_literal_drop.rb', line 19
def type
uml_type_id = @model&.uml_type&.idref
lookup_entity_name(uml_type_id) || uml_type_id
end
|