Class: DynamicPDFApi::PdfInfoResponse
- Inherits:
-
JsonResponse
- Object
- Response
- JsonResponse
- DynamicPDFApi::PdfInfoResponse
- Defined in:
- lib/ruby_client/PdfInfoResponse.rb
Overview
Represents the pdf information response.
Instance Attribute Summary collapse
-
#content ⇒ Object
Gets the pdf information content.
Attributes inherited from JsonResponse
Attributes inherited from Response
#error_id, #error_json, #error_message, #is_successful, #status_code
Instance Method Summary collapse
-
#initialize(json_content = nil) ⇒ PdfInfoResponse
constructor
Initializes a new instance of the PdfInfoResponse class.
Constructor Details
#initialize(json_content = nil) ⇒ PdfInfoResponse
Initializes a new instance of the PdfInfoResponse class.
13 14 15 16 17 18 19 20 |
# File 'lib/ruby_client/PdfInfoResponse.rb', line 13 def initialize(json_content = nil) @content = [] return if json_content.nil? super(json_content) @content = JSON.pretty_generate(json_content).gsub('\\\\', '\\').gsub('\"', '"').gsub('\\\r', '\r').gsub('\\\n', '\n').gsub('\\\t', '\t') @content = @content[1..@content.length - 2] end |
Instance Attribute Details
#content ⇒ Object
Gets the pdf information content.
25 26 27 |
# File 'lib/ruby_client/PdfInfoResponse.rb', line 25 def content @content end |