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

Returns a new instance of Base.



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

def initialize(http_response)
  self.http_response = http_response
end

Instance Attribute Details

#http_responseObject

Returns the value of attribute http_response.



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

def http_response
  @http_response
end

Instance Method Details

#http_codeObject



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

def http_code
  http_response.code
end

#http_messageObject



41
42
43
44
# File 'lib/tddium_client.rb', line 41

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