Class: Watobo::HTTPData::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/watobo/http/data/data.rb

Direct Known Subclasses

WWW_Form

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Base

Returns a new instance of Base.


30
31
32
# File 'lib/watobo/http/data/data.rb', line 30

def initialize(root)
  @root = root
end

Instance Method Details

#to_sObject


26
27
28
# File 'lib/watobo/http/data/data.rb', line 26

def to_s
  s = @root.body.nil? ? "" : @root.body
end