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