Class: EvssGeneratePdfProvider
- Inherits:
-
Object
- Object
- EvssGeneratePdfProvider
- Includes:
- GeneratePdfProvider
- Defined in:
- lib/disability_compensation/providers/generate_pdf/evss_generate_pdf_provider.rb
Instance Method Summary collapse
- #generate_526_pdf(form_content, _transaction_id = nil) ⇒ Object
-
#initialize(auth_headers, breakered: true) ⇒ EvssGeneratePdfProvider
constructor
A new instance of EvssGeneratePdfProvider.
Methods included from GeneratePdfProvider
Constructor Details
#initialize(auth_headers, breakered: true) ⇒ EvssGeneratePdfProvider
Returns a new instance of EvssGeneratePdfProvider.
10 11 12 13 14 15 16 17 |
# File 'lib/disability_compensation/providers/generate_pdf/evss_generate_pdf_provider.rb', line 10 def initialize(auth_headers, breakered: true) # both of these services implement `get_form526` @service = if breakered EVSS::DisabilityCompensationForm::Service.new(auth_headers) else EVSS::DisabilityCompensationForm::NonBreakeredService.new(auth_headers) end end |
Instance Method Details
#generate_526_pdf(form_content, _transaction_id = nil) ⇒ Object
19 20 21 |
# File 'lib/disability_compensation/providers/generate_pdf/evss_generate_pdf_provider.rb', line 19 def generate_526_pdf(form_content, _transaction_id = nil) @service.get_form526(form_content) end |