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