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