Sha256: 0208fc8e84b6c0bd6aad0b89f905179edf17894e4aab24ce4f8b2bf6985202f4
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true require_relative './attendance_report/record' module Zoho module People class AttendanceReport attr_reader :records def self.parse(data) records = data.map do |date, entry| Record.new(date: Date.parse(date), status: entry['Status']) end new(records) end def initialize(records) @records = records.sort_by(&:date) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems