Exception: TddiumClient::Result::Base

Inherits:
Error::Base
  • Object
show all
Defined in:
lib/tddium_client.rb

Direct Known Subclasses

Error::Server, Abstract

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ Base



23
24
25
# File 'lib/tddium_client.rb', line 23

def initialize(http_response)
  self.http_response = http_response
end

Instance Attribute Details

#http_responseObject

Returns the value of attribute http_response.



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

def http_response
  @http_response
end

Instance Method Details

#http_codeObject



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

def http_code
  http_response.code
end

#http_messageObject



31
32
33
34
# File 'lib/tddium_client.rb', line 31

def http_message
  v = http_response.header.send(:reason_phrase)
  return v
end