Sha256: c7625cea121a4105759ae7eb3528b676cfaf40fa75ec891938552dee7411dfdf

Contents?: true

Size: 215 Bytes

Versions: 1

Compression:

Stored size: 215 Bytes

Contents

require 'delegate'
require 'multi_xml'

module Vacuum
  class Response < SimpleDelegator
    def to_h
      MultiXml.parse(body)
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vacuum-1.1.1 lib/vacuum/response.rb