Class: Lutaml::Xmi::LiquidDrops::AssociationDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Lutaml::Xmi::LiquidDrops::AssociationDrop
- Defined in:
- lib/lutaml/xmi/liquid_drops/association_drop.rb
Instance Method Summary collapse
- #connector ⇒ Object
- #definition ⇒ Object
-
#initialize(association, options = {}) ⇒ AssociationDrop
constructor
rubocop:disable Lint/MissingSuper.
- #member_end ⇒ Object
- #member_end_attribute_name ⇒ Object
- #member_end_cardinality ⇒ Object
- #member_end_type ⇒ Object
- #member_end_xmi_id ⇒ Object
- #owner_end ⇒ Object
- #owner_end_xmi_id ⇒ Object
- #xmi_id ⇒ Object
Constructor Details
#initialize(association, options = {}) ⇒ AssociationDrop
rubocop:disable Lint/MissingSuper
7 8 9 10 11 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 7 def initialize(association, = {}) # rubocop:disable Lint/MissingSuper @model = association @options = @lookup = [:lookup] end |
Instance Method Details
#connector ⇒ Object
49 50 51 52 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 49 def connector connector = @lookup.fetch_connector(@model.xmi_id) ::Lutaml::Xmi::LiquidDrops::ConnectorDrop.new(connector, @options) end |
#definition ⇒ Object
45 46 47 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 45 def definition @model.definition end |
#member_end ⇒ Object
17 18 19 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 17 def member_end @model.member_end end |
#member_end_attribute_name ⇒ Object
29 30 31 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 29 def member_end_attribute_name @model.member_end_attribute_name end |
#member_end_cardinality ⇒ Object
25 26 27 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 25 def member_end_cardinality ::Lutaml::Xmi::LiquidDrops::CardinalityDrop.new(@model.member_end_cardinality) end |
#member_end_type ⇒ Object
21 22 23 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 21 def member_end_type @model.member_end_type end |
#member_end_xmi_id ⇒ Object
33 34 35 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 33 def member_end_xmi_id @model.member_end_xmi_id end |
#owner_end ⇒ Object
37 38 39 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 37 def owner_end @model.owner_end end |
#owner_end_xmi_id ⇒ Object
41 42 43 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 41 def owner_end_xmi_id @model.owner_end_xmi_id end |
#xmi_id ⇒ Object
13 14 15 |
# File 'lib/lutaml/xmi/liquid_drops/association_drop.rb', line 13 def xmi_id @model.xmi_id end |