Sha256: 9ad3603b7d5bc151e273a0d57dc148e53e51dd3b9a99ab8625aaa2e8f374cc23

Contents?: true

Size: 253 Bytes

Versions: 39

Compression:

Stored size: 253 Bytes

Contents

# This is the minimum required interface for an input object
class MinimumInputObject
  include Enumerable

  def initialize(values)
    @values = values
  end

  def each(&block)
    @values.each(&block)
  end

  def [](key)
    @values[key]
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
graphql-1.1.0 spec/support/minimum_input_object.rb
graphql-1.0.0 spec/support/minimum_input_object.rb
graphql-0.19.4 spec/support/minimum_input_object.rb
graphql-0.19.3 spec/support/minimum_input_object.rb
graphql-0.19.2 spec/support/minimum_input_object.rb
graphql-0.19.1 spec/support/minimum_input_object.rb
graphql-0.19.0 spec/support/minimum_input_object.rb
graphql-0.18.15 spec/support/minimum_input_object.rb
graphql-0.18.14 spec/support/minimum_input_object.rb
graphql-0.18.13 spec/support/minimum_input_object.rb
graphql-0.18.12 spec/support/minimum_input_object.rb
graphql-0.18.11 spec/support/minimum_input_object.rb
graphql-0.18.10 spec/support/minimum_input_object.rb
graphql-0.18.9 spec/support/minimum_input_object.rb
graphql-0.18.8 spec/support/minimum_input_object.rb
graphql-0.18.7 spec/support/minimum_input_object.rb
graphql-0.18.6 spec/support/minimum_input_object.rb
graphql-0.18.5 spec/support/minimum_input_object.rb
graphql-0.18.4 spec/support/minimum_input_object.rb
graphql-0.18.3 spec/support/minimum_input_object.rb