Class: GraphQL::StaticValidation::OneOfInputObjectsAreValidError
- Defined in:
 - lib/graphql/static_validation/rules/one_of_input_objects_are_valid_error.rb
 
Instance Attribute Summary collapse
- 
  
    
      #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:, input_object_type:)  ⇒ OneOfInputObjectsAreValidError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of OneOfInputObjectsAreValidError.
 - 
  
    
      #to_h  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
A hash representation of this Message.
 
Constructor Details
#initialize(message, path:, nodes:, input_object_type:) ⇒ OneOfInputObjectsAreValidError
Returns a new instance of OneOfInputObjectsAreValidError.
      7 8 9 10  | 
    
      # File 'lib/graphql/static_validation/rules/one_of_input_objects_are_valid_error.rb', line 7 def initialize(, path:, nodes:, input_object_type:) super(, path: path, nodes: nodes) @input_object_type = input_object_type end  | 
  
Instance Attribute Details
#input_object_type ⇒ Object (readonly)
Returns the value of attribute input_object_type.
      5 6 7  | 
    
      # File 'lib/graphql/static_validation/rules/one_of_input_objects_are_valid_error.rb', line 5 def input_object_type @input_object_type end  | 
  
Instance Method Details
#code ⇒ Object
      24 25 26  | 
    
      # File 'lib/graphql/static_validation/rules/one_of_input_objects_are_valid_error.rb', line 24 def code "invalidOneOfInputObject" end  | 
  
#to_h ⇒ Object
A hash representation of this Message
      13 14 15 16 17 18 19 20 21 22  | 
    
      # File 'lib/graphql/static_validation/rules/one_of_input_objects_are_valid_error.rb', line 13 def to_h extensions = { "code" => code, "inputObjectType" => input_object_type } super.merge({ "extensions" => extensions }) end  |