Class: GraphQL::Query::FieldResolutionStrategy::EnumResolutionStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/graph_ql/query/field_resolution_strategy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, field_type, target, parent_type, ast_field, operation_resolver) ⇒ EnumResolutionStrategy

Returns a new instance of EnumResolutionStrategy.



57
58
59
# File 'lib/graph_ql/query/field_resolution_strategy.rb', line 57

def initialize(value, field_type, target, parent_type, ast_field, operation_resolver)
  @result = value.to_s
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



56
57
58
# File 'lib/graph_ql/query/field_resolution_strategy.rb', line 56

def result
  @result
end