Class: DynamicPDFApi::ImageResponse
- Inherits:
-
JsonResponse
- Object
- Response
- JsonResponse
- DynamicPDFApi::ImageResponse
- Defined in:
- lib/ruby_client/ImageResponse.rb
Overview
Represents an image response.
Instance Attribute Summary collapse
-
#content ⇒ Object
Gets or sets a collection of ImageInformation.
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) ⇒ ImageResponse
constructor
Initializes a new instance of the ImageResponse class.
Constructor Details
#initialize(json_content = nil) ⇒ ImageResponse
Initializes a new instance of the ImageResponse class.
13 14 15 16 17 |
# File 'lib/ruby_client/ImageResponse.rb', line 13 def initialize(json_content = nil) @content = nil super(json_content) unless json_content.nil? @content = JSON.parse(json_content) end |
Instance Attribute Details
#content ⇒ Object
Gets or sets a collection of ImageInformation.
22 23 24 |
# File 'lib/ruby_client/ImageResponse.rb', line 22 def content @content end |