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