Class: Lutaml::Xmi::LiquidDrops::DiagramDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/lutaml/xmi/liquid_drops/diagram_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(model, options = {}) ⇒ DiagramDrop

rubocop:disable Lint/MissingSuper



7
8
9
10
# File 'lib/lutaml/xmi/liquid_drops/diagram_drop.rb', line 7

def initialize(model, options = {}) # rubocop:disable Lint/MissingSuper
  @model = model
  @options = options
end

Instance Method Details

#definitionObject



20
21
22
# File 'lib/lutaml/xmi/liquid_drops/diagram_drop.rb', line 20

def definition
  @model.definition
end

#nameObject



16
17
18
# File 'lib/lutaml/xmi/liquid_drops/diagram_drop.rb', line 16

def name
  @model.name
end

#package_idObject



24
25
26
# File 'lib/lutaml/xmi/liquid_drops/diagram_drop.rb', line 24

def package_id
  @model.package_id if @options[:with_gen]
end

#package_nameObject



28
29
30
# File 'lib/lutaml/xmi/liquid_drops/diagram_drop.rb', line 28

def package_name
  @model.package_name if @options[:with_gen]
end

#xmi_idObject



12
13
14
# File 'lib/lutaml/xmi/liquid_drops/diagram_drop.rb', line 12

def xmi_id
  @model.xmi_id
end