Class: WrappedCurlResponse
- Inherits:
-
Object
- Object
- WrappedCurlResponse
- Defined in:
- lib/nakamura.rb
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
-
#initialize(response) ⇒ WrappedCurlResponse
constructor
A new instance of WrappedCurlResponse.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ WrappedCurlResponse
Returns a new instance of WrappedCurlResponse.
65 66 67 |
# File 'lib/nakamura.rb', line 65 def initialize(response) @response = response end |
Instance Method Details
#body ⇒ Object
77 78 79 |
# File 'lib/nakamura.rb', line 77 def body return @response.body_str end |
#code ⇒ Object
69 70 71 |
# File 'lib/nakamura.rb', line 69 def code return @response.response_code end |
#message ⇒ Object
73 74 75 |
# File 'lib/nakamura.rb', line 73 def return @response.response_code end |