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