Sha256: b854e0bbe799093b1dc14e513795ee6aee141345677ecf73f5eec5e4887b4820

Contents?: true

Size: 278 Bytes

Versions: 6

Compression:

Stored size: 278 Bytes

Contents

# frozen_string_literal: true

module AppStoreConnect
  class Factory
    module Builder
      class Enum
        def self.call(values:)
          Class.new(Type::Enum) do |base|
            base.const_set('VALUES', values)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
app_store_connect-0.10.0 lib/app_store_connect/factory/builder/enum.rb
app_store_connect-0.9.0 lib/app_store_connect/factory/builder/enum.rb
app_store_connect-0.8.0 lib/app_store_connect/factory/builder/enum.rb
app_store_connect-0.7.0 lib/app_store_connect/factory/builder/enum.rb
app_store_connect-0.6.0 lib/app_store_connect/factory/builder/enum.rb
app_store_connect-0.5.0 lib/app_store_connect/factory/builder/enum.rb