class Attend::GetAbsentDays
Attributes
zoho[R]
Public Class Methods
new(zoho:)
click to toggle source
# File lib/attend/get_absent_days.rb, line 7 def initialize(zoho:) @zoho = zoho end
Public Instance Methods
call(email:, from:, to:)
click to toggle source
# File lib/attend/get_absent_days.rb, line 11 def call(email:, from:, to:) attendance_report = zoho.get_attendance_report(email: email, from: from, to: to) attendance_report.records.select(&:missing_work?).map(&:date) end