Class: Graphlyte::Schema::Enum

Inherits:
Data
  • Object
show all
Defined in:
lib/graphlyte/schema.rb

Overview

The description of an enum member

Instance Attribute Summary collapse

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_reasonObject

Returns the value of attribute deprecation_reason.



72
73
74
# File 'lib/graphlyte/schema.rb', line 72

def deprecation_reason
  @deprecation_reason
end

#descriptionObject

Returns the value of attribute description.



72
73
74
# File 'lib/graphlyte/schema.rb', line 72

def description
  @description
end

#is_deprecatedObject

Returns the value of attribute is_deprecated.



72
73
74
# File 'lib/graphlyte/schema.rb', line 72

def is_deprecated
  @is_deprecated
end

#nameObject

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