Class: Insulin::Week
- Inherits:
-
NDayPeriod
- Object
- Array
- NDayPeriod
- Insulin::Week
- Defined in:
- lib/insulin/week.rb
Instance Attribute Summary
Attributes inherited from NDayPeriod
#descriptor, #hba1c, #start_date
Instance Method Summary collapse
-
#initialize(date, mongo) ⇒ Week
constructor
A new instance of Week.
Methods inherited from NDayPeriod
Constructor Details
#initialize(date, mongo) ⇒ Week
Returns a new instance of Week.
5 6 7 8 9 10 11 12 13 |
# File 'lib/insulin/week.rb', line 5 def initialize date, mongo super({ "start_date" => date, "days" => 7, "mongo" => mongo }) @descriptor = "week" end |