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