Class: GraphQL::Query::Arguments::ArgumentValue
- Inherits:
- 
      Object
      
        - Object
- GraphQL::Query::Arguments::ArgumentValue
 
- Defined in:
- lib/graphql/query/arguments.rb
Instance Attribute Summary collapse
- 
  
    
      #default_used  ⇒ Object 
    
    
  
  
  
  
    
    
      writeonly
    
  
  
  
  
  
  
    Sets the attribute default_used. 
- 
  
    
      #definition  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute definition. 
- 
  
    
      #key  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute key. 
- 
  
    
      #value  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute value. 
Instance Method Summary collapse
- 
  
    
      #default_used?  ⇒ Boolean 
    
    
  
  
  
  
  
  
  
  
  
    True if the argument default was passed as the argument value to the resolver. 
- 
  
    
      #initialize(key, value, definition, default_used)  ⇒ ArgumentValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ArgumentValue. 
Constructor Details
#initialize(key, value, definition, default_used) ⇒ ArgumentValue
Returns a new instance of ArgumentValue.
| 126 127 128 129 130 131 | # File 'lib/graphql/query/arguments.rb', line 126 def initialize(key, value, definition, default_used) @key = key @value = value @definition = definition @default_used = default_used end | 
Instance Attribute Details
#default_used=(value) ⇒ Object (writeonly)
Sets the attribute default_used
| 124 125 126 | # File 'lib/graphql/query/arguments.rb', line 124 def default_used=(value) @default_used = value end | 
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
| 123 124 125 | # File 'lib/graphql/query/arguments.rb', line 123 def definition @definition end | 
#key ⇒ Object (readonly)
Returns the value of attribute key.
| 123 124 125 | # File 'lib/graphql/query/arguments.rb', line 123 def key @key end | 
#value ⇒ Object (readonly)
Returns the value of attribute value.
| 123 124 125 | # File 'lib/graphql/query/arguments.rb', line 123 def value @value end | 
Instance Method Details
#default_used? ⇒ Boolean
Returns true if the argument default was passed as the argument value to the resolver.
| 134 135 136 | # File 'lib/graphql/query/arguments.rb', line 134 def default_used? @default_used end |