Class: MonthEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/konkit_worklogger/month_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time_in_month, days_worked, month_balance, day_entries) ⇒ MonthEntry

Returns a new instance of MonthEntry.



8
9
10
11
12
13
# File 'lib/konkit_worklogger/month_entry.rb', line 8

def initialize(time_in_month, days_worked, month_balance, day_entries)
  @time_in_month = time_in_month
  @days_worked = days_worked
  @month_balance = month_balance
  @day_entries = day_entries
end

Instance Attribute Details

#day_entriesObject (readonly)

Returns the value of attribute day_entries.



6
7
8
# File 'lib/konkit_worklogger/month_entry.rb', line 6

def day_entries
  @day_entries
end

#days_workedObject (readonly)

Returns the value of attribute days_worked.



6
7
8
# File 'lib/konkit_worklogger/month_entry.rb', line 6

def days_worked
  @days_worked
end

#month_balanceObject (readonly)

Returns the value of attribute month_balance.



6
7
8
# File 'lib/konkit_worklogger/month_entry.rb', line 6

def month_balance
  @month_balance
end

#time_in_monthObject (readonly)

Returns the value of attribute time_in_month.



6
7
8
# File 'lib/konkit_worklogger/month_entry.rb', line 6

def time_in_month
  @time_in_month
end