Class: DynamicPDFApi::PdfResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/ruby_client/PdfResponse.rb

Overview

Represents the pdf response.

Instance Attribute Summary collapse

Attributes inherited from Response

#error_id, #error_json, #error_message, #is_successful, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(pdf_content = nil) ⇒ PdfResponse

Initializes a new instance of the PdfResponse class.

Parameters:

  • pdf_content (String) (defaults to: nil)

    The byte array of pdf content.



18
19
20
21
# File 'lib/ruby_client/PdfResponse.rb', line 18

def initialize(pdf_content = nil)
  super()
  @content = pdf_content
end

Instance Attribute Details

#contentObject

Gets the content od pdf.



11
12
13
# File 'lib/ruby_client/PdfResponse.rb', line 11

def content
  @content
end