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