Sha256: 64d1555d307e39ec9ea41984a207ceeadf62799c495ba57f234964fd6634b191

Contents?: true

Size: 210 Bytes

Versions: 4

Compression:

Stored size: 210 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
app_store_connect-0.12.2 lib/app_store_connect/factory.rb
app_store_connect-0.12.1 lib/app_store_connect/factory.rb
app_store_connect-0.12.0 lib/app_store_connect/factory.rb
app_store_connect-0.11.0 lib/app_store_connect/factory.rb