ProductReviews
@objc(GFYProductReviews)
public class ProductReviews : NSObject, Encodable
Contains product review and rating information
-
The product rating rounded to two decimal places
Declaration
Swift
public var rating: Decimal? { get } -
The allowable rating range
Declaration
Swift
public let ratingScale: ClosedRange<Double>? -
The number of reviews
Declaration
Swift
public let reviewCount: UInt? -
Creates a
ProductReviewsinstanceReturns
nilif all parameters arenilor ifratingis out of range for the providedratingScale.Declaration
Swift
public init?(rating: Double?, ratingScale: ClosedRange<Double>?, reviewCount: UInt?)Parameters
ratingThe product rating
ratingScaleThe allowable rating range
reviewCountThe number of reviews
-
Retrieves
Stringrepresentation ofProductReviewsDeclaration
Swift
public override var description: String { get }
ProductReviews Class Reference