Sha256: be73ba0f087231a2032d5daedfffa0a6048de9c7388683ba4911992098e3e395

Contents?: true

Size: 738 Bytes

Versions: 17

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

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

      def id
        @model[:id]
      end

      def name
        @model[:name]
      end

      def type
        @model[:type]
      end

      def xmi_id
        @model[:xmi_id]
      end

      def is_derived
        @model[:is_derived]
      end

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

      def definition
        @model[:definition]
      end

      def association
        @model[:association]
      end

      def type_ns
        @model[:type_ns]
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

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