Class: Castle::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/castle/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



5
# File 'lib/castle/response.rb', line 5

def initialize response; @body = response.body; end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/castle/response.rb', line 3

def body
  @body
end

Instance Method Details

#to_sObject



7
# File 'lib/castle/response.rb', line 7

def to_s; @body; end