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