Class: Vacuum::Response

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/vacuum/response.rb

Instance Method Summary collapse

Instance Method Details

#bodyObject



10
11
12
# File 'lib/vacuum/response.rb', line 10

def body
  __getobj__.body.force_encoding('UTF-8')
end

#to_hObject



6
7
8
# File 'lib/vacuum/response.rb', line 6

def to_h
  MultiXml.parse(body)
end