Class: SolidusGraphqlApi::Queries::OptionValue::OptionTypeQuery
- Inherits:
-
Object
- Object
- SolidusGraphqlApi::Queries::OptionValue::OptionTypeQuery
- Defined in:
- lib/solidus_graphql_api/queries/option_value/option_type_query.rb
Instance Attribute Summary collapse
-
#option_value ⇒ Object
readonly
Returns the value of attribute option_value.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(option_value:) ⇒ OptionTypeQuery
constructor
A new instance of OptionTypeQuery.
Constructor Details
#initialize(option_value:) ⇒ OptionTypeQuery
Returns a new instance of OptionTypeQuery.
9 10 11 |
# File 'lib/solidus_graphql_api/queries/option_value/option_type_query.rb', line 9 def initialize(option_value:) @option_value = option_value end |
Instance Attribute Details
#option_value ⇒ Object (readonly)
Returns the value of attribute option_value.
7 8 9 |
# File 'lib/solidus_graphql_api/queries/option_value/option_type_query.rb', line 7 def option_value @option_value end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/solidus_graphql_api/queries/option_value/option_type_query.rb', line 13 def call SolidusGraphqlApi::BatchLoader.for(option_value, :option_type) end |