Class: Lutaml::Xmi::LiquidDrops::DependencyDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::Xmi::LiquidDrops::DependencyDrop
- Defined in:
- lib/lutaml/xmi/liquid_drops/dependency_drop.rb
Instance Method Summary collapse
- #connector ⇒ Object
- #documentation ⇒ Object
- #ea_type ⇒ Object
- #id ⇒ Object
-
#initialize(model, options = {}) ⇒ DependencyDrop
constructor
rubocop:disable Lint/MissingSuper.
- #name ⇒ Object
Constructor Details
#initialize(model, options = {}) ⇒ DependencyDrop
rubocop:disable Lint/MissingSuper
7 8 9 10 11 |
# File 'lib/lutaml/xmi/liquid_drops/dependency_drop.rb', line 7 def initialize(model, = {}) # rubocop:disable Lint/MissingSuper @model = model @options = @lookup = [:lookup] end |
Instance Method Details
#connector ⇒ Object
29 30 31 32 |
# File 'lib/lutaml/xmi/liquid_drops/dependency_drop.rb', line 29 def connector connector = @lookup.fetch_connector(@model.id) ::Lutaml::Xmi::LiquidDrops::ConnectorDrop.new(connector, @options) end |
#documentation ⇒ Object
25 26 27 |
# File 'lib/lutaml/xmi/liquid_drops/dependency_drop.rb', line 25 def documentation @model&.documentation&.value end |
#ea_type ⇒ Object
21 22 23 |
# File 'lib/lutaml/xmi/liquid_drops/dependency_drop.rb', line 21 def ea_type @model&.properties&.ea_type end |
#id ⇒ Object
13 14 15 |
# File 'lib/lutaml/xmi/liquid_drops/dependency_drop.rb', line 13 def id @model.id end |
#name ⇒ Object
17 18 19 |
# File 'lib/lutaml/xmi/liquid_drops/dependency_drop.rb', line 17 def name @model.name end |