Class: Lutaml::Xmi::LiquidDrops::ConnectorDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::Xmi::LiquidDrops::ConnectorDrop
show all
- Includes:
- Parsers::XmiBase
- Defined in:
- lib/lutaml/xmi/liquid_drops/connector_drop.rb
Instance Method Summary
collapse
included, #set_xmi_model, #xmi_index
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, options = {}) @model = model
@options = options
@xmi_root_model = options[:xmi_root_model]
@id_name_mapping = options[: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
|
#type ⇒ Object
24
25
26
|
# File 'lib/lutaml/xmi/liquid_drops/connector_drop.rb', line 24
def type
@model&.properties&.ea_type
end
|