Class: Castle::Response
- Inherits:
-
Object
- Object
- Castle::Response
- Defined in:
- lib/castle/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #to_s ⇒ Object
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
#body ⇒ Object (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_s ⇒ Object
7 |
# File 'lib/castle/response.rb', line 7 def to_s; @body; end |