Class: DynamicPDFApi::XmlResponse

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

Overview

Represents the xml 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(xml_content = nil) ⇒ XmlResponse

Initializes a new instance of the XmlResponse class.

Parameters:

  • xml_content (String) (defaults to: nil)

    The xml content of the response.



13
14
15
16
# File 'lib/ruby_client/XmlResponse.rb', line 13

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

Instance Attribute Details

#contentObject

Gets the xml content.



21
22
23
# File 'lib/ruby_client/XmlResponse.rb', line 21

def content
  @content
end