Class: GraphQL::StaticValidation::RequiredInputObjectAttributesArePresentError
- Inherits:
- 
      Error
      
        - Object
- Error
- GraphQL::StaticValidation::RequiredInputObjectAttributesArePresentError
 
- Defined in:
- lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb
Instance Attribute Summary collapse
- 
  
    
      #argument_name  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute argument_name. 
- 
  
    
      #argument_type  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute argument_type. 
- 
  
    
      #input_object_type  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute input_object_type. 
Attributes inherited from Error
Instance Method Summary collapse
- 
  
    
      #code  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
- 
  
    
      #initialize(message, path:, nodes:, argument_type:, argument_name:, input_object_type:)  ⇒ RequiredInputObjectAttributesArePresentError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RequiredInputObjectAttributesArePresentError. 
- 
  
    
      #to_h  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    A hash representation of this Message. 
Constructor Details
#initialize(message, path:, nodes:, argument_type:, argument_name:, input_object_type:) ⇒ RequiredInputObjectAttributesArePresentError
Returns a new instance of RequiredInputObjectAttributesArePresentError.
| 9 10 11 12 13 14 | # File 'lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb', line 9 def initialize(, path:, nodes:, argument_type:, argument_name:, input_object_type:) super(, path: path, nodes: nodes) @argument_type = argument_type @argument_name = argument_name @input_object_type = input_object_type end | 
Instance Attribute Details
#argument_name ⇒ Object (readonly)
Returns the value of attribute argument_name.
| 6 7 8 | # File 'lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb', line 6 def argument_name @argument_name end | 
#argument_type ⇒ Object (readonly)
Returns the value of attribute argument_type.
| 5 6 7 | # File 'lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb', line 5 def argument_type @argument_type end | 
#input_object_type ⇒ Object (readonly)
Returns the value of attribute input_object_type.
| 7 8 9 | # File 'lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb', line 7 def input_object_type @input_object_type end | 
Instance Method Details
#code ⇒ Object
| 30 31 32 | # File 'lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb', line 30 def code "missingRequiredInputObjectAttribute" end | 
#to_h ⇒ Object
A hash representation of this Message
| 17 18 19 20 21 22 23 24 25 26 27 28 | # File 'lib/graphql/static_validation/rules/required_input_object_attributes_are_present_error.rb', line 17 def to_h extensions = { "code" => code, "argumentName" => argument_name, "argumentType" => argument_type, "inputObjectType" => input_object_type, } super.merge({ "extensions" => extensions }) end |