Class: Parse::Product

Inherits:
Object
  • Object
show all
Defined in:
lib/parse/model/classes/product.rb

Overview

Note:

This Parse feature is effectively deprecated. The PFProduct IAP integration was tied to hosted Parse and is not actively used by modern Parse Server deployments. Most apps now verify in-app purchase receipts directly against the Apple App Store or Google Play. The _Product collection and this class are retained for backwards compatibility with legacy applications that still read or write product metadata in this table.

This class represents the data and columns contained in the standard Parse _Product collection. These records were used when implementing in-app purchases in mobile applications via the original Parse iOS SDK's PFProduct downloadable-content flow.

The default schema for Product is as follows:

class Parse::Product < Parse::Object
 # See Parse::Object for inherited properties...

 property :download, :file
 property :icon,     :file,    required: true
 property :order,    :integer, required: true
 property :subtitle,           required: true
 property :title,              required: true
 property :product_identifier, required: true

end

See Also:

Instance Attribute Summary collapse

Instance Attribute Details

#downloadString

Returns the file payload for this product download.

Returns:

  • (String)

    the file payload for this product download.



44
# File 'lib/parse/model/classes/product.rb', line 44

property :download, :file

#download_nameString

Returns the name of this download.

Returns:

  • (String)

    the name of this download.



48
# File 'lib/parse/model/classes/product.rb', line 48

property :download_name

#iconString

An icon file representing this download. This field is required by Parse.

Returns:



53
# File 'lib/parse/model/classes/product.rb', line 53

property :icon, :file, required: true

#orderString

The product order number. This field is required by Parse.

Returns:



58
# File 'lib/parse/model/classes/product.rb', line 58

property :order, :integer, required: true

#product_identifierString

The product identifier. This field is required by Parse.

Returns:



63
# File 'lib/parse/model/classes/product.rb', line 63

property :product_identifier, required: true

#subtitleString

The subtitle description for this product. This field is required by Parse.

Returns:



68
# File 'lib/parse/model/classes/product.rb', line 68

property :subtitle, required: true

#titleString

The title for this product. This field is required by Parse.

Returns:

  • (String)

    the title for this product.



73
# File 'lib/parse/model/classes/product.rb', line 73

property :title, required: true