Class: Lutaml::XMI::ConnectorDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::XMI::ConnectorDrop
- Includes:
- Parsers::XMIBase
- Defined in:
- lib/lutaml/xmi/liquid_drops/connector_drop.rb
Instance Method Summary collapse
- #direction ⇒ Object
- #documentation ⇒ Object
- #ea_type ⇒ Object
- #idref ⇒ Object
-
#initialize(model, options = {}) ⇒ ConnectorDrop
constructor
rubocop:disable Lint/MissingSuper.
- #name ⇒ Object
- #source ⇒ Object
- #target ⇒ Object
- #type ⇒ Object
Methods included from Parsers::XMIBase
Constructor Details
#initialize(model, options = {}) ⇒ ConnectorDrop
rubocop:disable Lint/MissingSuper
8 9 10 11 12 13 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 8 def initialize(model, = {}) # rubocop:disable Lint/MissingSuper @model = model @options = @xmi_root_model = [:xmi_root_model] @id_name_mapping = [:id_name_mapping] end |
Instance Method Details
#direction ⇒ Object
35 36 37 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 35 def direction @model&.properties&.direction end |
#documentation ⇒ Object
27 28 29 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 27 def documentation @model&.documentation&.value end |
#ea_type ⇒ Object
31 32 33 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 31 def ea_type @model&.properties&.ea_type end |
#idref ⇒ Object
15 16 17 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 15 def idref @model.idref end |
#name ⇒ Object
19 20 21 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 19 def name @model.name end |
#source ⇒ Object
39 40 41 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 39 def source ::Lutaml::XMI::SourceTargetDrop.new(@model.source) end |
#target ⇒ Object
43 44 45 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 43 def target ::Lutaml::XMI::SourceTargetDrop.new(@model.target) end |
#type ⇒ Object
23 24 25 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 23 def type @model&.properties&.ea_type end |