class Rubhttp::Response::Body

Public Class Methods

new(contents) click to toggle source

@param contents [String]

# File lib/rubhttp/response/body.rb, line 7
def initialize(contents)
  @contents = contents.freeze
end

Public Instance Methods

inspect() click to toggle source

Easier to interpret string inspect.

# File lib/rubhttp/response/body.rb, line 18
def inspect
  "#<#{self.class}:#{object_id.to_s(16)}>"
end
to_s() click to toggle source

@return [String] the entire body as a string

# File lib/rubhttp/response/body.rb, line 12
def to_s
  @contents
end
Also aliased as: to_str
to_str()
Alias for: to_s