Sha256: 4ae1f3daceb813de9a647be38a13eca398174ed87dd69f108d8b2905bfdb568e
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
module Cieloz class RequisicaoTid < Requisicao module ClassMethods def map source, opts={} tid = attrs_from source, opts, :tid new source: source, opts: opts, tid: tid end end def self.inherited(target) target.extend ClassMethods end attr_accessor :tid def attributes { tid: @tid, dados_ec: @dados_ec } end end class RequisicaoTidValor < RequisicaoTid module ClassMethods def map source, opts={} tid, valor = attrs_from source, opts, :tid, :valor new source: source, opts: opts, tid: tid, valor: valor end end def self.inherited(target) target.extend ClassMethods end attr_accessor :valor def attributes { tid: @tid, dados_ec: @dados_ec, valor: @valor } end end class RequisicaoConsulta < RequisicaoTid ; end class RequisicaoAutorizacaoTid < RequisicaoTid ; end class RequisicaoCaptura < RequisicaoTidValor ; end class RequisicaoCancelamento < RequisicaoTidValor ; end end
Version data entries
5 entries across 5 versions & 1 rubygems