Class: DynamicPDFApi::Response

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

Overview

Represents the base class for response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



6
7
8
9
10
11
12
# File 'lib/ruby_client/Response.rb', line 6

def initialize
  @_is_successful = false
  @_error_message = nil
  @_error_id = nil
  @_status_code = nil
  @_error_json = nil
end

Instance Attribute Details

#error_idObject

Gets the error id.



27
28
29
# File 'lib/ruby_client/Response.rb', line 27

def error_id
  @error_id
end

#error_jsonObject

Gets the error json.



37
38
39
# File 'lib/ruby_client/Response.rb', line 37

def error_json
  @error_json
end

#error_messageObject

Gets the error message.



22
23
24
# File 'lib/ruby_client/Response.rb', line 22

def error_message
  @error_message
end

#is_successfulObject

Gets the boolean, indicating the response’s status.



17
18
19
# File 'lib/ruby_client/Response.rb', line 17

def is_successful
  @is_successful
end

#status_codeObject

Gets the status code.



32
33
34
# File 'lib/ruby_client/Response.rb', line 32

def status_code
  @status_code
end