Class: GraphQL::Compatibility::LazyExecutionSpecification::LazySchema::LazyPushCollection
- Inherits:
-
Object
- Object
- GraphQL::Compatibility::LazyExecutionSpecification::LazySchema::LazyPushCollection
- Defined in:
- lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb
Instance Method Summary collapse
-
#initialize(ctx, values) ⇒ LazyPushCollection
constructor
A new instance of LazyPushCollection.
- #push ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(ctx, values) ⇒ LazyPushCollection
Returns a new instance of LazyPushCollection.
32 33 34 35 |
# File 'lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb', line 32 def initialize(ctx, values) @ctx = ctx @values = values end |
Instance Method Details
#push ⇒ Object
37 38 39 |
# File 'lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb', line 37 def push @values.map { |v| LazyPush.new(@ctx, v) } end |
#value ⇒ Object
41 42 43 |
# File 'lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb', line 41 def value @values end |