Sha256: fb0e2ef8e8bed6118ddf08017214ee267f302a17ca238662c37cfca7b4079f07

Contents?: true

Size: 432 Bytes

Versions: 16

Compression:

Stored size: 432 Bytes

Contents

module Cieloz
  class Requisicao
    class Resposta
      include ActiveModel::Serializers::Xml
      include Helpers

      attr_reader :xml

      def self.from xml
        obj = new
        begin
          obj = obj.from_xml xml
        rescue
          # makes it resilient to bad responses,
          # allowing them to be logged
        end
        obj.instance_variable_set :@xml, xml
        obj
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cieloz-0.0.21 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.20 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.19 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.18 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.17 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.16 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.15 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.14 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.13 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.12 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.11 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.10 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.9 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.8 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.7 lib/cieloz/requisicao/resposta.rb
cieloz-0.0.4 lib/cieloz/requisicao/resposta.rb