Class: GraphQL::SchemaComparator::Changes::SchemaSubscriptionTypeChanged
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::SchemaSubscriptionTypeChanged
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#new_schema ⇒ Object
readonly
Returns the value of attribute new_schema.
-
#old_schema ⇒ Object
readonly
Returns the value of attribute old_schema.
Instance Method Summary collapse
-
#initialize(old_schema, new_schema) ⇒ SchemaSubscriptionTypeChanged
constructor
A new instance of SchemaSubscriptionTypeChanged.
- #message ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(old_schema, new_schema) ⇒ SchemaSubscriptionTypeChanged
Returns a new instance of SchemaSubscriptionTypeChanged.
321 322 323 324 325 |
# File 'lib/graphql/schema_comparator/changes.rb', line 321 def initialize(old_schema, new_schema) @old_schema = old_schema @new_schema = new_schema @criticality = Changes::Criticality.breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
319 320 321 |
# File 'lib/graphql/schema_comparator/changes.rb', line 319 def criticality @criticality end |
#new_schema ⇒ Object (readonly)
Returns the value of attribute new_schema.
319 320 321 |
# File 'lib/graphql/schema_comparator/changes.rb', line 319 def new_schema @new_schema end |
#old_schema ⇒ Object (readonly)
Returns the value of attribute old_schema.
319 320 321 |
# File 'lib/graphql/schema_comparator/changes.rb', line 319 def old_schema @old_schema end |
Instance Method Details
#message ⇒ Object
327 328 329 |
# File 'lib/graphql/schema_comparator/changes.rb', line 327 def "Schema subscription type has changed from `#{old_schema.subscription}` to `#{new_schema.subscription}`" end |