Class: Restful::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-restful-adapter/response.rb

Instance Method Summary collapse

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(options={})
  @body = options[:body]
  @status = options[:status]
end

Instance Method Details

#bodyObject



8
9
10
# File 'lib/dm-restful-adapter/response.rb', line 8

def body
  @body
end

#statusObject



12
13
14
# File 'lib/dm-restful-adapter/response.rb', line 12

def status
  @status
end