Sha256: 09b411d05e633e8a9421ed66bbc1c7557f39bb69eb9baa4a1dd517f2f6c1f1eb
Contents?: true
Size: 669 Bytes
Versions: 16
Compression:
Stored size: 669 Bytes
Contents
module Cieloz class Requisicao class Transacao < Resposta attr_accessor :tid, :status, :url_autenticacao def success? true end STATUSES = { "0" => :criada, "1" => :em_andamento, "2" => :autenticada, "3" => :nao_autenticada, "4" => :autorizada, "5" => :nao_autorizada, "6" => :capturada, "9" => :cancelada, "10" => :em_autenticacao, "12" => :em_cancelamento } STATUSES.each do |_, status_type| define_method "#{status_type}?" do STATUSES[status] == status_type end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems