class Mindee::Product::FR::Payslip::PayslipV2PayPeriod
Information about the pay period.
def initialize(prediction, page_id)
-
page_id
(Integer, nil
) -- -
prediction
(Hash
) --
def initialize(prediction, page_id) super(prediction, page_id) @end_date = prediction['end_date'] @month = prediction['month'] @payment_date = prediction['payment_date'] @start_date = prediction['start_date'] @year = prediction['year'] @page_id = page_id end
def printable_values
-
(Hash)
-
def printable_values printable = {} printable[:end_date] = format_for_display(@end_date) printable[:month] = format_for_display(@month) printable[:payment_date] = format_for_display(@payment_date) printable[:start_date] = format_for_display(@start_date) printable[:year] = format_for_display(@year) printable end
def to_s
-
(String)
-
def to_s printable = printable_values out_str = String.new out_str << "\n :End Date: #{printable[:end_date]}" out_str << "\n :Month: #{printable[:month]}" out_str << "\n :Payment Date: #{printable[:payment_date]}" out_str << "\n :Start Date: #{printable[:start_date]}" out_str << "\n :Year: #{printable[:year]}" out_str end