Class: Gentle::Phase1Set
- Inherits:
-
Object
- Object
- Gentle::Phase1Set
- Defined in:
- lib/gentle/phase_1_set.rb
Constant Summary collapse
- SKUS =
{ "GPS1-5" => "GPST100 - 2", "GPS2-5" => "GPST200 - 2", "GPS3-5" => "GPST300", "GPS4-5" => "GPST400", "GPS5-5" => "GPST500" }
Class Method Summary collapse
Instance Method Summary collapse
- #balm_dotcom ⇒ Object
- #included_items ⇒ Object
-
#initialize(item) ⇒ Phase1Set
constructor
A new instance of Phase1Set.
- #line_item(id, sku, price) ⇒ Object
- #milky_jelly ⇒ Object
- #priming_moisturizer ⇒ Object
- #skin_tint ⇒ Object
Constructor Details
#initialize(item) ⇒ Phase1Set
Returns a new instance of Phase1Set.
12 13 14 |
# File 'lib/gentle/phase_1_set.rb', line 12 def initialize(item) @item = item end |
Class Method Details
.match(item) ⇒ Object
16 17 18 |
# File 'lib/gentle/phase_1_set.rb', line 16 def self.match(item) SKUS.key? item.sku end |
Instance Method Details
#balm_dotcom ⇒ Object
37 38 39 |
# File 'lib/gentle/phase_1_set.rb', line 37 def balm_dotcom line_item(96, "GBD100-3", 12.0) end |
#included_items ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/gentle/phase_1_set.rb', line 20 def included_items [ milky_jelly, priming_moisturizer, balm_dotcom, skin_tint ] end |
#line_item(id, sku, price) ⇒ Object
45 46 47 |
# File 'lib/gentle/phase_1_set.rb', line 45 def line_item(id, sku, price) LineItem.new(sku, id, @item.quantity, price) end |
#milky_jelly ⇒ Object
29 30 31 |
# File 'lib/gentle/phase_1_set.rb', line 29 def milky_jelly line_item(97 , "GMJC100", 18.0) end |
#priming_moisturizer ⇒ Object
33 34 35 |
# File 'lib/gentle/phase_1_set.rb', line 33 def priming_moisturizer line_item( 3, "GPM100", 25.0) end |
#skin_tint ⇒ Object
41 42 43 |
# File 'lib/gentle/phase_1_set.rb', line 41 def skin_tint line_item(6, SKUS[@item.sku], 26.0) end |