Class: Falsify::Collect

Inherits:
Object
  • Object
show all
Defined in:
lib/falsify/models/product/collection/collect.rb

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#collection_idString

The ID of the custom collection containing the product.

Returns:

  • (String)


6
7
8
# File 'lib/falsify/models/product/collection/collect.rb', line 6

def collection_id
  @collection_id
end

#created_atString

The date and time (ISO 8601 format) when the collect was created.

Returns:

  • (String)


9
10
11
# File 'lib/falsify/models/product/collection/collect.rb', line 9

def created_at
  @created_at
end

#idString

A unique numeric identifier for the collect.

Returns:

  • (String)


12
13
14
# File 'lib/falsify/models/product/collection/collect.rb', line 12

def id
  @id
end

#positionInteger

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.

Returns:

  • (Integer)


17
18
19
# File 'lib/falsify/models/product/collection/collect.rb', line 17

def position
  @position
end

#product_idString

The unique numeric identifier for the product in the custom collection.

Returns:

  • (String)


20
21
22
# File 'lib/falsify/models/product/collection/collect.rb', line 20

def product_id
  @product_id
end

#sort_valueString

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.

Returns:

  • (String)


24
25
26
# File 'lib/falsify/models/product/collection/collect.rb', line 24

def sort_value
  @sort_value
end

#updated_atString

The date and time (ISO 8601 format) when the collect was last updated.

Returns:

  • (String)


27
28
29
# File 'lib/falsify/models/product/collection/collect.rb', line 27

def updated_at
  @updated_at
end