Class: Falsify::Collect
- Inherits:
-
Object
- Object
- Falsify::Collect
- Defined in:
- lib/falsify/models/product/collection/collect.rb
Overview
See the API documentation.
Instance Attribute Summary collapse
-
#collection_id ⇒ String
The ID of the custom collection containing the product.
-
#created_at ⇒ String
The date and time (ISO 8601 format) when the collect was created.
-
#id ⇒ String
A unique numeric identifier for the collect.
-
#position ⇒ Integer
The position of this product in a manually sorted custom collection.
-
#product_id ⇒ String
The unique numeric identifier for the product in the custom collection.
-
#sort_value ⇒ String
This is the same value as
position
but padded with leading zeroes to make it alphanumeric-sortable. -
#updated_at ⇒ String
The date and time (ISO 8601 format) when the collect was last updated.
Instance Attribute Details
#collection_id ⇒ String
The ID of the custom collection containing the product.
6 7 8 |
# File 'lib/falsify/models/product/collection/collect.rb', line 6 def collection_id @collection_id end |
#created_at ⇒ String
The date and time (ISO 8601 format) when the collect was created.
9 10 11 |
# File 'lib/falsify/models/product/collection/collect.rb', line 9 def created_at @created_at end |
#id ⇒ String
A unique numeric identifier for the collect.
12 13 14 |
# File 'lib/falsify/models/product/collection/collect.rb', line 12 def id @id end |
#position ⇒ Integer
The position of this product in a manually sorted custom collection. The first position is 1. This value is applied only when the custom collection is sorted manually.
17 18 19 |
# File 'lib/falsify/models/product/collection/collect.rb', line 17 def position @position end |
#product_id ⇒ String
The unique numeric identifier for the product in the custom collection.
20 21 22 |
# File 'lib/falsify/models/product/collection/collect.rb', line 20 def product_id @product_id end |
#sort_value ⇒ String
This is the same value as position
but padded with leading zeroes to make it alphanumeric-sortable.
This value is applied only when the custom collection is sorted manually.
24 25 26 |
# File 'lib/falsify/models/product/collection/collect.rb', line 24 def sort_value @sort_value end |
#updated_at ⇒ String
The date and time (ISO 8601 format) when the collect was last updated.
27 28 29 |
# File 'lib/falsify/models/product/collection/collect.rb', line 27 def updated_at @updated_at end |