Class: Episodic::Platform::HTTPResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/episodic/platform/response.rb

Overview

The raw response. This contains the response code and body.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_code, body) ⇒ HTTPResponse

Constructor

Parameters

response_code<Integer>

The code returned from the request

body<String>

The xml of the response



88
89
90
91
# File 'lib/episodic/platform/response.rb', line 88

def initialize response_code, body
  @response_code = response_code
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



78
79
80
# File 'lib/episodic/platform/response.rb', line 78

def body
  @body
end

#response_codeObject (readonly)

Returns the value of attribute response_code.



78
79
80
# File 'lib/episodic/platform/response.rb', line 78

def response_code
  @response_code
end