Class: Liquid::ItemDrop

Inherits:
Drop
  • Object
show all
Includes:
Memery
Defined in:
app/models/liquid/item_drop.rb

Instance Attribute Summary collapse

Delegated Instance Attributes collapse

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ ItemDrop

Returns a new instance of ItemDrop.



18
19
20
# File 'app/models/liquid/item_drop.rb', line 18

def initialize(item)
  @item = item
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



4
5
6
# File 'app/models/liquid/item_drop.rb', line 4

def item
  @item
end

Instance Method Details

#(ProductSpecificationSAFE_METHODS - [text])Object

Alias for Item#(ProductSpecificationSAFE_METHODS - [text])

Returns:

  • (Object)

    Item#(ProductSpecificationSAFE_METHODS - [text])

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#coverage_formattedObject

Alias for Item#coverage_formatted

Returns:

  • (Object)

    Item#coverage_formatted

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#detailed_descriptionObject

Alias for Item#detailed_description

Returns:

  • (Object)

    Item#detailed_description

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#finishObject

Alias for Item#finish

Returns:

  • (Object)

    Item#finish

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#length_formattedObject

Alias for Item#length_formatted

Returns:

  • (Object)

    Item#length_formatted

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#nameObject

Alias for Item#name

Returns:

  • (Object)

    Item#name

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#skuObject

Alias for Item#sku

Returns:

  • (Object)

    Item#sku

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#voltage_formattedObject

Alias for Item#voltage_formatted

Returns:

  • (Object)

    Item#voltage_formatted

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#watts_formattedObject

Alias for Item#watts_formatted

Returns:

  • (Object)

    Item#watts_formatted

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item

#width_formattedObject

Alias for Item#width_formatted

Returns:

  • (Object)

    Item#width_formatted

See Also:



6
7
8
9
10
11
12
13
14
15
16
# File 'app/models/liquid/item_drop.rb', line 6

delegate :name,
:sku,
:detailed_description,
:width_formatted,
:length_formatted,
:voltage_formatted,
:watts_formatted,
:coverage_formatted,
:finish,
*(ProductSpecification::SAFE_METHODS - [:text]),
to: :item