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