Class: HrLite::TeamDay::Row

Inherits:
Struct
  • Object
show all
Defined in:
app/services/hr_lite/team_day.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def date
  @date
end

#day_secondsObject

Returns the value of attribute day_seconds

Returns:

  • (Object)

    the current value of day_seconds



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def day_seconds
  @day_seconds
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def kind
  @kind
end

#leaveObject

Returns the value of attribute leave

Returns:

  • (Object)

    the current value of leave



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def leave
  @leave
end

#month_secondsObject

Returns the value of attribute month_seconds

Returns:

  • (Object)

    the current value of month_seconds



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def month_seconds
  @month_seconds
end

#profileObject

Returns the value of attribute profile

Returns:

  • (Object)

    the current value of profile



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def profile
  @profile
end

#recordObject

Returns the value of attribute record

Returns:

  • (Object)

    the current value of record



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def record
  @record
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



7
8
9
# File 'app/services/hr_lite/team_day.rb', line 7

def user
  @user
end

Instance Method Details

#date_today?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/services/hr_lite/team_day.rb', line 9

def date_today?
  date == Date.current
end