Class: SolidusGraphqlApi::Types::Taxon
- Inherits:
-
Base::RelayNode
- Object
- GraphQL::Schema::Object
- Base::Object
- Base::RelayNode
- SolidusGraphqlApi::Types::Taxon
- Defined in:
- lib/solidus_graphql_api/types/taxon.rb
Instance Method Summary collapse
Methods inherited from Base::Object
Instance Method Details
#children ⇒ Object
28 29 30 |
# File 'lib/solidus_graphql_api/types/taxon.rb', line 28 def children Queries::Taxon::ChildrenQuery.new(taxon: object).call end |
#icon_url ⇒ Object
20 21 22 |
# File 'lib/solidus_graphql_api/types/taxon.rb', line 20 def icon_url object.icon.url end |
#parent_taxon ⇒ Object
24 25 26 |
# File 'lib/solidus_graphql_api/types/taxon.rb', line 24 def parent_taxon Queries::Taxon::ParentTaxonQuery.new(taxon: object).call end |