Class: ADPDownloader::PayStatement
- Inherits:
-
Statement
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
Instance Method Details
#adjustment? ⇒ Boolean
11
12
13
|
# File 'lib/adp-downloader/statement/pay_statement.rb', line 11
def adjustment?
_("payAdjustmentIndicator")
end
|
#date ⇒ Object
15
16
17
|
# File 'lib/adp-downloader/statement/pay_statement.rb', line 15
def date
_("payDate")
end
|
#file_suffix ⇒ Object
7
8
9
|
# File 'lib/adp-downloader/statement/pay_statement.rb', line 7
def file_suffix
"adjustment" if adjustment?
end
|
#id ⇒ Object
3
4
5
|
# File 'lib/adp-downloader/statement/pay_statement.rb', line 3
def id
File.basename(pdf_uri, ".*")
end
|
#json_uri ⇒ Object
19
20
21
|
# File 'lib/adp-downloader/statement/pay_statement.rb', line 19
def json_uri
_("payDetailUri.href")
end
|