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