Sha256: c6ccd9fd2e00b4cbbb1ea691853562c4bc1b46a3470d0bace2596dbd412427d8

Contents?: true

Size: 870 Bytes

Versions: 15

Compression:

Stored size: 870 Bytes

Contents

# frozen_string_literal: true

module Lutaml
  module XMI
    class AssociationDrop < Liquid::Drop
      def initialize(model) # rubocop:disable Lint/MissingSuper
        @model = model
      end

      def xmi_id
        @model[:xmi_id]
      end

      def member_end
        @model[:member_end]
      end

      def member_end_type
        @model[:member_end_type]
      end

      def member_end_cardinality
        ::Lutaml::XMI::CardinalityDrop.new(@model[:member_end_cardinality])
      end

      def member_end_attribute_name
        @model[:member_end_attribute_name]
      end

      def member_end_xmi_id
        @model[:member_end_xmi_id]
      end

      def owner_end
        @model[:owner_end]
      end

      def owner_end_xmi_id
        @model[:owner_end_xmi_id]
      end

      def definition
        @model[:definition]
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lutaml-0.9.25 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.24 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.23 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.22 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.21 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.20 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.19 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.18 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.17 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.16 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.15 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.14 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.13 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.12 lib/lutaml/xmi/liquid_drops/association_drop.rb
lutaml-0.9.11 lib/lutaml/xmi/liquid_drops/association_drop.rb