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