Class: Restful::Response
- Inherits:
-
Object
- Object
- Restful::Response
- Defined in:
- lib/dm-restful-adapter/response.rb
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(options = {}) ⇒ Response
constructor
A new instance of Response.
- #status ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Response
Returns a new instance of Response.
3 4 5 6 |
# File 'lib/dm-restful-adapter/response.rb', line 3 def initialize(={}) @body = [:body] @status = [:status] end |
Instance Method Details
#body ⇒ Object
8 9 10 |
# File 'lib/dm-restful-adapter/response.rb', line 8 def body @body end |
#status ⇒ Object
12 13 14 |
# File 'lib/dm-restful-adapter/response.rb', line 12 def status @status end |