class AboutYou::SDK::Model::FacetCounts
This class represents a FacetCounts
model.
- author
-
Collins GmbH & Co KG
Attributes
an array of facetcount objects
The group_id
of the facetcounts
the cont of the products
the count of the procuts with other facets
the count of the products without facets
Public Class Methods
This method is used for creating an instance of this class by a json_object.
-
Args :
-
group_id
-> the groupId of the facetcounts -
json_object
-> the jsonObject received from the api -
facet_count_list
-> a list of facetcount objects
-
-
Returns :
-
Instance of
AboutYou::SDK::Model::FacetCounts
-
# File lib/AboutYou/Model/ProductSearchResult/facet_counts.rb, line 53 def self.create_from_json(group_id, json_object, facet_count_list) facet_counts = new( json_object['total'], json_object['other'], json_object['missing'] ) facet_counts.group_id = group_id facet_counts.facet_count_list = facet_count_list facet_counts end
the Constructor for the facetcounts class
-
Args :
-
product_count_total
-> the total productcount -
product_count_with_other_facet
-> the productcount without any facets -
product_count_without_any_facet
-> the productcount with other facets
-
-
Returns :
-
Instance of
AboutYou::SDK::Model::FacetCounts
-
# File lib/AboutYou/Model/ProductSearchResult/facet_counts.rb, line 32 def initialize( product_count_total, product_count_with_other_facet, product_count_without_any_facet ) self.product_count_total = product_count_total self.product_count_with_other_facet = product_count_with_other_facet self.product_count_without_any_facet = product_count_without_any_facet end