Class: Graphlyte::Syntax::Argument
Overview
An argument to a Field See: spec.graphql.org/October2021/#sec-Language.Arguments
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name = nil, value = nil, **kwargs) ⇒ Argument
constructor
A new instance of Argument.
Methods inherited from Data
#==, attr_accessor, attr_reader, attributes, #dup, #eql?, #hash, #inspect
Constructor Details
#initialize(name = nil, value = nil, **kwargs) ⇒ Argument
Returns a new instance of Argument.
47 48 49 50 51 |
# File 'lib/graphlyte/syntax.rb', line 47 def initialize(name = nil, value = nil, **kwargs) super(**kwargs) @name = name if name @value = value if value end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
45 46 47 |
# File 'lib/graphlyte/syntax.rb', line 45 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
45 46 47 |
# File 'lib/graphlyte/syntax.rb', line 45 def value @value end |