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
23 24 25 |
# File 'lib/tddium_client.rb', line 23 def initialize(http_response) self.http_response = http_response end |
Instance Attribute Details
#http_response ⇒ Object
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_code ⇒ Object
27 28 29 |
# File 'lib/tddium_client.rb', line 27 def http_code http_response.code end |
#http_message ⇒ Object
31 32 33 34 |
# File 'lib/tddium_client.rb', line 31 def v = http_response.header.send(:reason_phrase) return v end |