| Class | ActiveResource::Response |
| In: |
activeresource/lib/active_resource/http_mock.rb
|
| Parent: | Object |
| body | [RW] | |
| code | [RW] | |
| headers | [RW] | |
| message | [RW] |
# File activeresource/lib/active_resource/http_mock.rb, line 105 def initialize(body, message = 200, headers = {}) @body, @message, @headers = body, message.to_s, headers @code = @message[0,3].to_i end
# File activeresource/lib/active_resource/http_mock.rb, line 122 def ==(other) if (other.is_a?(Response)) other.body == body && other.message == message && other.headers == headers else false end end
# File activeresource/lib/active_resource/http_mock.rb, line 118 def []=(key, value) headers[key] = value end