Class: GraphQL::SchemaComparator::Changes::TypeAdded
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- GraphQL::SchemaComparator::Changes::TypeAdded
- Defined in:
- lib/graphql/schema_comparator/changes.rb
Instance Attribute Summary collapse
-
#criticality ⇒ Object
readonly
Returns the value of attribute criticality.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ TypeAdded
constructor
A new instance of TypeAdded.
- #message ⇒ Object
- #path ⇒ Object
Methods inherited from AbstractChange
#breaking?, #dangerous?, #non_breaking?
Constructor Details
#initialize(type) ⇒ TypeAdded
Returns a new instance of TypeAdded.
680 681 682 683 |
# File 'lib/graphql/schema_comparator/changes.rb', line 680 def initialize(type) @type = type @criticality = Changes::Criticality.non_breaking end |
Instance Attribute Details
#criticality ⇒ Object (readonly)
Returns the value of attribute criticality.
678 679 680 |
# File 'lib/graphql/schema_comparator/changes.rb', line 678 def criticality @criticality end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
678 679 680 |
# File 'lib/graphql/schema_comparator/changes.rb', line 678 def type @type end |
Instance Method Details
#message ⇒ Object
685 686 687 |
# File 'lib/graphql/schema_comparator/changes.rb', line 685 def "Type `#{type.graphql_name}` was added" end |
#path ⇒ Object
689 690 691 |
# File 'lib/graphql/schema_comparator/changes.rb', line 689 def path type.path end |