Class: GraphQL::SchemaComparator::Changes::InputFieldAdded
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::InputFieldAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Overview
Maybe Breaking
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#input_object_type ⇒ Object
readonly
Returns the value of attribute input_object_type.
Instance Method Summary collapse
-
#initialize(input_object_type, field) ⇒ InputFieldAdded
constructor
A new instance of InputFieldAdded.
- #message ⇒ Object
Constructor Details
#initialize(input_object_type, field) ⇒ InputFieldAdded
Returns a new instance of InputFieldAdded.
499 500 501 502 503 |
# File 'lib/graphql/schema_comparator/changes.rb', line 499 def initialize(input_object_type, field) @input_object_type = input_object_type @field = field @breaking = field.type.kind.non_null? ? true : false end |
Instance Attribute Details
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
497 498 499 |
# File 'lib/graphql/schema_comparator/changes.rb', line 497 def breaking @breaking end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
497 498 499 |
# File 'lib/graphql/schema_comparator/changes.rb', line 497 def field @field end |
#input_object_type ⇒ Object (readonly)
Returns the value of attribute input_object_type.
497 498 499 |
# File 'lib/graphql/schema_comparator/changes.rb', line 497 def input_object_type @input_object_type end |
Instance Method Details
#message ⇒ Object
505 506 507 |
# File 'lib/graphql/schema_comparator/changes.rb', line 505 def "Input field `#{field.name}` was added to input object type `#{input_object_type.name}`" end |