Class: GraphQL::SchemaComparator::Changes::TypeDescriptionChanged
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::TypeDescriptionChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#new_type ⇒ Object
readonly
Returns the value of attribute new_type.
-
#old_type ⇒ Object
readonly
Returns the value of attribute old_type.
Instance Method Summary collapse
-
#initialize(old_type, new_type) ⇒ TypeDescriptionChanged
constructor
A new instance of TypeDescriptionChanged.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(old_type, new_type) ⇒ TypeDescriptionChanged
Returns a new instance of TypeDescriptionChanged.
714 715 716 717 718 |
# File 'lib/graphql/schema_comparator/changes.rb', line 714 def initialize(old_type, new_type) @old_type = old_type @new_type = new_type @criticality = Changes::Criticality.non_breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
712 713 714 |
# File 'lib/graphql/schema_comparator/changes.rb', line 712 def criticality @criticality end |
#new_type ⇒ Object (readonly)
Returns the value of attribute new_type.
712 713 714 |
# File 'lib/graphql/schema_comparator/changes.rb', line 712 def new_type @new_type end |
#old_type ⇒ Object (readonly)
Returns the value of attribute old_type.
712 713 714 |
# File 'lib/graphql/schema_comparator/changes.rb', line 712 def old_type @old_type end |
Instance Method Details
#message ⇒ Object
720 721 722 |
# File 'lib/graphql/schema_comparator/changes.rb', line 720 def "Description `#{old_type.description}` on type `#{old_type.graphql_name}` has changed to `#{new_type.description}`" end |
#path ⇒ Object
724 725 726 |
# File 'lib/graphql/schema_comparator/changes.rb', line 724 def path old_type.path end |