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.



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

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

Instance Method Details

#pushObject



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

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

#valueObject



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

def value
  @values
end