Class: Vacuum::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Vacuum::Response
- Defined in:
- lib/vacuum/response.rb
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
10 11 12 |
# File 'lib/vacuum/response.rb', line 10 def body __getobj__.body.force_encoding('UTF-8') end |
#to_h ⇒ Object
6 7 8 |
# File 'lib/vacuum/response.rb', line 6 def to_h MultiXml.parse(body) end |