module Smslist::Response
Public Instance Methods
parse_xml(response)
click to toggle source
# File lib/smslist/response.rb, line 3 def parse_xml(response) Nokogiri::XML(response.body).tap do |xml| error = xml.xpath('response/error').text raise Smslist::Error.new(error) unless error.empty? end end