Class: Insulin::Week

Inherits:
NDayPeriod show all
Defined in:
lib/insulin/week.rb

Instance Attribute Summary

Attributes inherited from NDayPeriod

#descriptor, #hba1c, #start_date

Instance Method Summary collapse

Methods inherited from NDayPeriod

#average_glucose, #to_s

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