Class: HTTP::Session::Response::StringBody
- Inherits:
-
Object
- Object
- HTTP::Session::Response::StringBody
- Extended by:
- Forwardable
- Defined in:
- lib/http/session/response/string_body.rb
Instance Method Summary collapse
-
#initialize(contents) ⇒ StringBody
constructor
A new instance of StringBody.
- #to_s ⇒ Object (also: #to_str)
Constructor Details
#initialize(contents) ⇒ StringBody
Returns a new instance of StringBody.
8 9 10 |
# File 'lib/http/session/response/string_body.rb', line 8 def initialize(contents) @contents = contents end |
Instance Method Details
#to_s ⇒ Object Also known as: to_str
12 13 14 |
# File 'lib/http/session/response/string_body.rb', line 12 def to_s @contents end |