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 ⇒ GraphQL::BaseType
The input type for this argument.
Instance Method Summary collapse
Methods included from Define::InstanceDefinable
#define, #initialize_copy, #metadata, #redefine
Instance Attribute Details
#default_value ⇒ Object
Returns the value of attribute default_value.
21 22 23 |
# File 'lib/graphql/argument.rb', line 21 def default_value @default_value end |
#description ⇒ Object
Returns the value of attribute description.
21 22 23 |
# File 'lib/graphql/argument.rb', line 21 def description @description end |
#name ⇒ String
Returns The name of this argument on its Field or InputObjectType.
34 35 36 |
# File 'lib/graphql/argument.rb', line 34 def name @name end |
#type ⇒ GraphQL::BaseType
Returns the input type for this argument.
44 45 46 |
# File 'lib/graphql/argument.rb', line 44 def type @type end |
Instance Method Details
#default_value? ⇒ Boolean
25 26 27 |
# File 'lib/graphql/argument.rb', line 25 def default_value? !!@has_default_value end |