Class: GraphQL::Query::ValueResolution::BaseResolution
- Inherits:
-
Object
- Object
- GraphQL::Query::ValueResolution::BaseResolution
- Defined in:
- lib/graphql/query/value_resolution.rb
Direct Known Subclasses
EnumResolution, ListResolution, NonNullResolution, ObjectResolution, ScalarResolution
Instance Attribute Summary collapse
-
#ast_field ⇒ Object
readonly
Returns the value of attribute ast_field.
-
#execution_strategy ⇒ Object
readonly
Returns the value of attribute execution_strategy.
-
#field_type ⇒ Object
readonly
Returns the value of attribute field_type.
-
#parent_type ⇒ Object
readonly
Returns the value of attribute parent_type.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, field_type, target, parent_type, ast_field, query, execution_strategy) ⇒ BaseResolution
constructor
A new instance of BaseResolution.
- #result ⇒ Object
Constructor Details
#initialize(value, field_type, target, parent_type, ast_field, query, execution_strategy) ⇒ BaseResolution
Returns a new instance of BaseResolution.
11 12 13 14 15 16 17 18 19 |
# File 'lib/graphql/query/value_resolution.rb', line 11 def initialize(value, field_type, target, parent_type, ast_field, query, execution_strategy) @value = value @field_type = field_type @target = target @parent_type = parent_type @ast_field = ast_field @query = query @execution_strategy = execution_strategy end |
Instance Attribute Details
#ast_field ⇒ Object (readonly)
Returns the value of attribute ast_field.
9 10 11 |
# File 'lib/graphql/query/value_resolution.rb', line 9 def ast_field @ast_field end |
#execution_strategy ⇒ Object (readonly)
Returns the value of attribute execution_strategy.
9 10 11 |
# File 'lib/graphql/query/value_resolution.rb', line 9 def execution_strategy @execution_strategy end |
#field_type ⇒ Object (readonly)
Returns the value of attribute field_type.
9 10 11 |
# File 'lib/graphql/query/value_resolution.rb', line 9 def field_type @field_type end |
#parent_type ⇒ Object (readonly)
Returns the value of attribute parent_type.
9 10 11 |
# File 'lib/graphql/query/value_resolution.rb', line 9 def parent_type @parent_type end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
9 10 11 |
# File 'lib/graphql/query/value_resolution.rb', line 9 def query @query end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
9 10 11 |
# File 'lib/graphql/query/value_resolution.rb', line 9 def target @target end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/graphql/query/value_resolution.rb', line 9 def value @value end |
Instance Method Details
#result ⇒ Object
21 22 23 |
# File 'lib/graphql/query/value_resolution.rb', line 21 def result raise NotImplementedError, "Should return a value based on initialization params" end |