Class: SolidusGraphqlApi::Queries::Order::ShippingAddressQuery

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus_graphql_api/queries/order/shipping_address_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order:) ⇒ ShippingAddressQuery

Returns a new instance of ShippingAddressQuery.



9
10
11
# File 'lib/solidus_graphql_api/queries/order/shipping_address_query.rb', line 9

def initialize(order:)
  @order = order
end

Instance Attribute Details

#orderObject (readonly)

Returns the value of attribute order.



7
8
9
# File 'lib/solidus_graphql_api/queries/order/shipping_address_query.rb', line 7

def order
  @order
end

Instance Method Details

#callObject



13
14
15
# File 'lib/solidus_graphql_api/queries/order/shipping_address_query.rb', line 13

def call
  SolidusGraphqlApi::BatchLoader.for(order, :ship_address)
end