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