Class: Lutaml::Xmi::LiquidDrops::ConnectorDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::Xmi::LiquidDrops::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
- #recognized? ⇒ Boolean
- #source ⇒ Object
- #target ⇒ Object
- #type ⇒ Object
Methods included from Parsers::XmiBase
Constructor Details
#initialize(model, options = {}) ⇒ ConnectorDrop
rubocop:disable Lint/MissingSuper
9 10 11 12 13 14 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 9 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
36 37 38 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 36 def direction @model&.properties&.direction end |
#documentation ⇒ Object
28 29 30 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 28 def documentation @model&.documentation&.value end |
#ea_type ⇒ Object
32 33 34 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 32 def ea_type @model&.properties&.ea_type end |
#idref ⇒ Object
16 17 18 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 16 def idref @model.idref end |
#name ⇒ Object
20 21 22 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 20 def name @model.name end |
#recognized? ⇒ Boolean
50 51 52 53 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 50 def recognized? !!@id_name_mapping[@model.source.idref] && !!@id_name_mapping[@model.target.idref] end |
#source ⇒ Object
40 41 42 43 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 40 def source ::Lutaml::Xmi::LiquidDrops::SourceTargetDrop.new(@model.source, @options) end |
#target ⇒ Object
45 46 47 48 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 45 def target ::Lutaml::Xmi::LiquidDrops::SourceTargetDrop.new(@model.target, @options) end |
#type ⇒ Object
24 25 26 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 24 def type @model&.properties&.ea_type end |