Class: GraphQL::Query::FieldResolutionStrategy::EnumResolutionStrategy
- Inherits:
-
Object
- Object
- GraphQL::Query::FieldResolutionStrategy::EnumResolutionStrategy
- Defined in:
- lib/graph_ql/query/field_resolution_strategy.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(value, field_type, target, parent_type, ast_field, operation_resolver) ⇒ EnumResolutionStrategy
constructor
A new instance of EnumResolutionStrategy.
Constructor Details
#initialize(value, field_type, target, parent_type, ast_field, operation_resolver) ⇒ EnumResolutionStrategy
Returns a new instance of EnumResolutionStrategy.
62 63 64 |
# File 'lib/graph_ql/query/field_resolution_strategy.rb', line 62 def initialize(value, field_type, target, parent_type, ast_field, operation_resolver) @result = value.to_s end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
61 62 63 |
# File 'lib/graph_ql/query/field_resolution_strategy.rb', line 61 def result @result end |