Exception: TddiumClient::Result::Base
- Inherits:
-
Error::Base
- Object
- RuntimeError
- Error::Base
- TddiumClient::Result::Base
- Defined in:
- lib/tddium_client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#http_response ⇒ Object
Returns the value of attribute http_response.
Instance Method Summary collapse
- #http_code ⇒ Object
- #http_message ⇒ Object
-
#initialize(http_response) ⇒ Base
constructor
A new instance of Base.
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_response ⇒ Object
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_code ⇒ Object
37 38 39 |
# File 'lib/tddium_client.rb', line 37 def http_code http_response.code end |
#http_message ⇒ Object
41 42 43 44 |
# File 'lib/tddium_client.rb', line 41 def v = http_response.header.send(:reason_phrase) return v end |