Class: GraphQL::InputValue
- Inherits:
-
Object
- Object
- GraphQL::InputValue
- Defined in:
- lib/graph_ql/types/input_value.rb
Instance Attribute Summary collapse
-
#default_value ⇒ Object
readonly
Returns the value of attribute default_value.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, description: nil, default_value: nil, name: nil) ⇒ InputValue
constructor
A new instance of InputValue.
Constructor Details
#initialize(type:, description: nil, default_value: nil, name: nil) ⇒ InputValue
Returns a new instance of InputValue.
4 5 6 7 8 9 |
# File 'lib/graph_ql/types/input_value.rb', line 4 def initialize(type:, description: nil, default_value: nil, name: nil) @type = type @description = description, @default_value = default_value @name = name end |
Instance Attribute Details
#default_value ⇒ Object (readonly)
Returns the value of attribute default_value.
2 3 4 |
# File 'lib/graph_ql/types/input_value.rb', line 2 def default_value @default_value end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
2 3 4 |
# File 'lib/graph_ql/types/input_value.rb', line 2 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/graph_ql/types/input_value.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/graph_ql/types/input_value.rb', line 2 def type @type end |