Sha256: 5675d08bcf224e3ed799ab8c653e2ae106d6f2be4ca0f386988b82e05ae5ca80

Contents?: true

Size: 563 Bytes

Versions: 16

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

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

      def xmi_id
        @model[:xmi_id]
      end

      def name
        @model[:name]
      end

      def values
        @model[:values].map do |value|
          ::Lutaml::XMI::EnumOwnedLiteralDrop.new(value)
        end
      end

      def definition
        @model[:definition]
      end

      def stereotype
        @model[:stereotype]
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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