Class: Lutaml::Xmi::LiquidDrops::ConnectorDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::Xmi::LiquidDrops::ConnectorDrop
- 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
Constructor Details
#initialize(model, options = {}) ⇒ ConnectorDrop
rubocop:disable Lint/MissingSuper
7 8 9 10 11 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 7 def initialize(model, = {}) # rubocop:disable Lint/MissingSuper @model = model @options = @id_name_mapping = [:id_name_mapping] end |
Instance Method Details
#direction ⇒ Object
33 34 35 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 33 def direction @model&.properties&.direction end |
#documentation ⇒ Object
25 26 27 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 25 def documentation @model&.documentation&.value end |
#ea_type ⇒ Object
29 30 31 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 29 def ea_type @model&.properties&.ea_type end |
#idref ⇒ Object
13 14 15 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 13 def idref @model.idref end |
#name ⇒ Object
17 18 19 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 17 def name @model.name end |
#recognized? ⇒ Boolean
47 48 49 50 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 47 def recognized? !!@id_name_mapping[@model.source.idref] && !!@id_name_mapping[@model.target.idref] end |
#source ⇒ Object
37 38 39 40 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 37 def source ::Lutaml::Xmi::LiquidDrops::SourceTargetDrop.new(@model.source, @options) end |
#target ⇒ Object
42 43 44 45 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 42 def target ::Lutaml::Xmi::LiquidDrops::SourceTargetDrop.new(@model.target, @options) end |
#type ⇒ Object
21 22 23 |
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 21 def type @model&.properties&.ea_type end |