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



10
11
12
# File 'app/services/hr_lite/attendance_puncher.rb', line 10

def error
  @error
end

#recordObject

Returns the value of attribute record

Returns:

  • (Object)

    the current value of record



10
11
12
# File 'app/services/hr_lite/attendance_puncher.rb', line 10

def record
  @record
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


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

def ok? = error.nil?