Class: GraphQL::SchemaComparator::Changes::FieldAdded
- Inherits:
-
Object
- Object
- GraphQL::SchemaComparator::Changes::FieldAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#breaking ⇒ Object
readonly
Returns the value of attribute breaking.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
Instance Method Summary collapse
-
#initialize(object_type, field) ⇒ FieldAdded
constructor
A new instance of FieldAdded.
- #message ⇒ Object
Constructor Details
#initialize(object_type, field) ⇒ FieldAdded
Returns a new instance of FieldAdded.
358 359 360 361 362 |
# File 'lib/graphql/schema_comparator/changes.rb', line 358 def initialize(object_type, field) @object_type = object_type @field = field @breaking = false end |
Instance Attribute Details
#breaking ⇒ Object (readonly)
Returns the value of attribute breaking.
356 357 358 |
# File 'lib/graphql/schema_comparator/changes.rb', line 356 def breaking @breaking end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
356 357 358 |
# File 'lib/graphql/schema_comparator/changes.rb', line 356 def field @field end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
356 357 358 |
# File 'lib/graphql/schema_comparator/changes.rb', line 356 def object_type @object_type end |
Instance Method Details
#message ⇒ Object
364 365 366 |
# File 'lib/graphql/schema_comparator/changes.rb', line 364 def "Field `#{field.name}` was added to object type `#{object_type.name}`" end |