Class: Pdf4me::CreatePdfA
- Inherits:
-
WrapperAction
- Object
- WrapperAction
- Pdf4me::CreatePdfA
- Defined in:
- lib/pdf4me/actions/create_pdf_a.rb
Instance Attribute Summary collapse
-
#compliance ⇒ Object
Returns the value of attribute compliance.
-
#file ⇒ Object
Returns the value of attribute file.
Attributes inherited from WrapperAction
Instance Method Summary collapse
Methods inherited from WrapperAction
#assign_attributes, #defaults, #initialize, #run, #run!
Constructor Details
This class inherits a constructor from Pdf4me::WrapperAction
Instance Attribute Details
#compliance ⇒ Object
Returns the value of attribute compliance.
3 4 5 |
# File 'lib/pdf4me/actions/create_pdf_a.rb', line 3 def compliance @compliance end |
#file ⇒ Object
Returns the value of attribute file.
3 4 5 |
# File 'lib/pdf4me/actions/create_pdf_a.rb', line 3 def file @file end |
Instance Method Details
#call_api ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/pdf4me/actions/create_pdf_a.rb', line 21 def call_api client.multipart_post( path, file: File.open(file, 'rb'), pdfCompliance: compliance ) end |
#path ⇒ Object
17 18 19 |
# File 'lib/pdf4me/actions/create_pdf_a.rb', line 17 def path '/PdfA/CreatePdfA' end |