Class: DynamicPDFApi::JsonResponse

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

Overview

Represents the base class for json response.

Direct Known Subclasses

ImageResponse, PdfInfoResponse, PdfTextResponse

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(json_content = nil) ⇒ JsonResponse

Returns a new instance of JsonResponse.



8
9
10
11
# File 'lib/ruby_client/JsonResponse.rb', line 8

def initialize(json_content = nil)
  super()
  @json_content = json_content
end

Instance Attribute Details

#json_contentObject

Gets the json content.



16
17
18
# File 'lib/ruby_client/JsonResponse.rb', line 16

def json_content
  @json_content
end