Class: ADPDownloader::PayStatement

Inherits:
Statement
  • Object
show all
Defined in:
lib/adp-downloader/statement/pay_statement.rb

Instance Method Summary collapse

Methods inherited from Statement

#_, #filename, #full_path, #initialize, #json, #merge, #pdf, #pdf_uri, #year

Constructor Details

This class inherits a constructor from ADPDownloader::Statement

Instance Method Details

#adjustment?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/adp-downloader/statement/pay_statement.rb', line 11

def adjustment?
  _("payAdjustmentIndicator")
end

#dateObject



15
16
17
# File 'lib/adp-downloader/statement/pay_statement.rb', line 15

def date
  _("payDate")
end

#file_suffixObject



7
8
9
# File 'lib/adp-downloader/statement/pay_statement.rb', line 7

def file_suffix
  "adjustment" if adjustment?
end

#idObject



3
4
5
# File 'lib/adp-downloader/statement/pay_statement.rb', line 3

def id
  File.basename(pdf_uri, ".*")
end

#json_uriObject



19
20
21
# File 'lib/adp-downloader/statement/pay_statement.rb', line 19

def json_uri
  _("payDetailUri.href")
end