Class: GraphQL::Field
- Inherits:
-
Object
- Object
- GraphQL::Field
- Defined in:
- lib/graphql/field.rb
Overview
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name:, type:) ⇒ Field
constructor
A new instance of Field.
- #type_class ⇒ Object
Constructor Details
#initialize(name:, type:) ⇒ Field
Returns a new instance of Field.
4 5 6 7 |
# File 'lib/graphql/field.rb', line 4 def initialize(name:, type:) @name = name @type = type.to_s end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/graphql/field.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/graphql/field.rb', line 3 def type @type end |