Class: GraphQL::Compatibility::LazyExecutionSpecification::LazySchema::LazyPushCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb

Instance Method Summary collapse

Constructor Details

#initialize(ctx, values) ⇒ LazyPushCollection

Returns a new instance of LazyPushCollection



41
42
43
44
# File 'lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb', line 41

def initialize(ctx, values)
  @ctx = ctx
  @values = values
end

Instance Method Details

#pushObject



46
47
48
# File 'lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb', line 46

def push
  @values.map { |v| LazyPush.new(@ctx, v) }
end

#valueObject



50
51
52
# File 'lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb', line 50

def value
  @values
end