Sha256: c49cf2315581c67768d5a60aaeb13a894f8e3d92c91eaf651990afece3404882

Contents?: true

Size: 367 Bytes

Versions: 2

Compression:

Stored size: 367 Bytes

Contents

require 'xmlsimple'
module SmsNotify
  # Handles parsing a CDYNE SmsNotify! XML response
  # into a Ruby-like hash.
  class Response
    # Converts XML into a Ruby-like hash
    def self.parse(xml_response_body)
      parser = XmlSimple.new({'ForceArray' => false, 'KeepRoot' => true, 'SuppressEmpty' => nil})
      parser.xml_in(xml_response_body)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cdyne-sms-notify-0.9.6 lib/sms_notify/response.rb
cdyne-sms-notify-0.8.5 lib/sms_notify/response.rb