Class: GraphQL::Argument
- Inherits:
-
Object
- Object
- GraphQL::Argument
- Includes:
- Define::InstanceDefinable
- Defined in:
- lib/graphql/argument.rb
Overview
Used for defined arguments (Field, InputObjectType)
#name must be a String.
Instance Attribute Summary collapse
-
#default_value ⇒ Object
Returns the value of attribute default_value.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ String
The name of this argument on its Field or InputObjectType.
-
#type ⇒ Object
Returns the value of attribute type.
Method Summary
Methods included from Define::InstanceDefinable
Instance Attribute Details
#default_value ⇒ Object
Returns the value of attribute default_value.
20 21 22 |
# File 'lib/graphql/argument.rb', line 20 def default_value @default_value end |
#description ⇒ Object
Returns the value of attribute description.
20 21 22 |
# File 'lib/graphql/argument.rb', line 20 def description @description end |
#name ⇒ String
Returns The name of this argument on its Field or InputObjectType.
23 24 25 |
# File 'lib/graphql/argument.rb', line 23 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/graphql/argument.rb', line 20 def type @type end |