Sha256: 7952d19785f15789ca266a3f296030a0a1d313c4f4970ecc2a2b6ae642c7e004
Contents?: true
Size: 471 Bytes
Versions: 6
Compression:
Stored size: 471 Bytes
Contents
module Netaxept module Responses class Response attr_reader :errors def initialize(node) super() @errors = [] if(node["Exception"]) errors << Netaxept::ErrorMessage.new(node["Exception"]["Error"]) elsif(node["BBSException"]) errors << Netaxept::ErrorMessage.new(node) end end def success? self.errors.empty? end end end end
Version data entries
6 entries across 6 versions & 1 rubygems