Class: RegularDietLoss

Inherits:
Diet
  • Object
show all
Defined in:
lib/regular_diet_loss.rb

Instance Method Summary collapse

Instance Method Details

#generate_diet(context) ⇒ Object

generate diet method



6
7
8
9
10
11
12
13
14
15
# File 'lib/regular_diet_loss.rb', line 6

def generate_diet(context)
    @hash = Hash.new
    @hash.store("diet_type","regular_diet_loss")
    @hash.store("time_interval",90)
    @hash.store("date_started",context.date_started)
    @hash.store("initial_weight",context.initial_weight)
    @hash.store("target_weight",context.target_weight)
    @hash.store("daily_calories",1300)
    @hash
end