Class: Insulin::Month

Inherits:
NDayPeriod show all
Defined in:
lib/insulin/month.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) ⇒ Month

Returns a new instance of Month.



5
6
7
8
9
10
11
# File 'lib/insulin/month.rb', line 5

def initialize date, mongo
  super({
    "start_date" => date,
    "days" => 30,
    "mongo" => mongo
  })
end