Class: ObjectToGraphQL::Nodes::Field

Inherits:
GraphQL::Language::Nodes::Field
  • Object
show all
Defined in:
lib/object_to_graphql/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/object_to_graphql/nodes.rb', line 8

def value
  @value
end

Instance Method Details

#initialize_node(attributes) ⇒ Object



10
11
12
13
# File 'lib/object_to_graphql/nodes.rb', line 10

def initialize_node(attributes)
  super
  @value = attributes[:value]
end