Class: HrLite::AttendancePuncher::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



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

def error
  @error
end

#recordObject

Returns the value of attribute record

Returns:

  • (Object)

    the current value of record



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

def record
  @record
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


8
# File 'app/services/hr_lite/attendance_puncher.rb', line 8

def ok? = error.nil?