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