class AboutYou::SDK::Model::PriceRange

This class represents a Price Range model.

author

Collins GmbH & Co KG

Attributes

from[RW]

startpoint of the price range

max[RW]

max value of the price range

mean[RW]

mean

min[RW]

min value of the price range

product_count[RW]

the product count

sum[RW]

sum

to[RW]

end of the price range

Public Class Methods

create_from_json(json_object) click to toggle source

This method is used for creating an instance of this class by a json_object.

# File lib/AboutYou/Model/ProductSearchResult/price_range.rb, line 34
def self.create_from_json(json_object)
  price_range = new

  price_range.product_count = json_object['count']
  price_range.from = json_object['from']
  price_range.to = json_object['to']
  price_range.min = json_object['min']
  price_range.max = json_object['max']
  price_range.mean = json_object['mean']
  price_range.sum = json_object['total']

  price_range
end