Class: Graphlyte::Schema::Enum
Overview
The description of an enum member
Instance Attribute Summary collapse
-
#deprecation_reason ⇒ Object
Returns the value of attribute deprecation_reason.
-
#description ⇒ Object
Returns the value of attribute description.
-
#is_deprecated ⇒ Object
Returns the value of attribute is_deprecated.
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Methods inherited from Data
#==, attr_accessor, attr_reader, attributes, #dup, #eql?, #hash, #initialize, #inspect
Constructor Details
This class inherits a constructor from Graphlyte::Data
Instance Attribute Details
#deprecation_reason ⇒ Object
Returns the value of attribute deprecation_reason.
72 73 74 |
# File 'lib/graphlyte/schema.rb', line 72 def deprecation_reason @deprecation_reason end |
#description ⇒ Object
Returns the value of attribute description.
72 73 74 |
# File 'lib/graphlyte/schema.rb', line 72 def description @description end |
#is_deprecated ⇒ Object
Returns the value of attribute is_deprecated.
72 73 74 |
# File 'lib/graphlyte/schema.rb', line 72 def is_deprecated @is_deprecated end |
#name ⇒ Object
Returns the value of attribute name.
72 73 74 |
# File 'lib/graphlyte/schema.rb', line 72 def name @name end |
Class Method Details
.from_schema_response(data) ⇒ Object
74 75 76 |
# File 'lib/graphlyte/schema.rb', line 74 def self.from_schema_response(data) new(**data) end |