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.
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
#push ⇒ Object
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 |
#value ⇒ Object
50 51 52 |
# File 'lib/graphql/compatibility/lazy_execution_specification/lazy_schema.rb', line 50 def value @values end |