Sha256: f4f901045c222d919964b7156f4af6669cc04ad177f9f7abddb3a54fddaf40ad
Contents?: true
Size: 348 Bytes
Versions: 24
Compression:
Stored size: 348 Bytes
Contents
module PagSeguro module Errors class InvalidData < Exception def initialize(response_xml) err_msg = Nokogiri::XML(response_xml).css("errors error").inject("") do |acc, node| acc + "#{node.css('code').first.content}: #{node.css('message').first.content}\n" end super(err_msg) end end end end
Version data entries
24 entries across 24 versions & 1 rubygems