Class: HTTP::Session::Response::StringBody

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/http/session/response/string_body.rb

Instance Method Summary collapse

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_sObject Also known as: to_str



12
13
14
# File 'lib/http/session/response/string_body.rb', line 12

def to_s
  @contents
end