Class: Cieloz::RequisicaoTransacao::DadosAvs
- Inherits:
-
Object
- Object
- Cieloz::RequisicaoTransacao::DadosAvs
- Includes:
- Helpers
- Defined in:
- lib/cieloz/requisicao_transacao/dados_avs.rb
Constant Summary collapse
- CONFERE =
'C'- NAO_CONFERE =
'N'- INDISPONIVEL =
'I'- TEMPORARIAMENTE_INDISPONIVEL =
'T'- NAO_SUPORTADO =
'X'
Instance Attribute Summary collapse
-
#bairro ⇒ Object
Returns the value of attribute bairro.
-
#cep ⇒ Object
Returns the value of attribute cep.
-
#complemento ⇒ Object
Returns the value of attribute complemento.
-
#endereco ⇒ Object
Returns the value of attribute endereco.
-
#numero ⇒ Object
Returns the value of attribute numero.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Helpers
#attributes=, #dasherize_attr, included, #initialize
Instance Attribute Details
#bairro ⇒ Object
Returns the value of attribute bairro.
11 12 13 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 11 def bairro @bairro end |
#cep ⇒ Object
Returns the value of attribute cep.
11 12 13 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 11 def cep @cep end |
#complemento ⇒ Object
Returns the value of attribute complemento.
11 12 13 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 11 def complemento @complemento end |
#endereco ⇒ Object
Returns the value of attribute endereco.
11 12 13 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 11 def endereco @endereco end |
#numero ⇒ Object
Returns the value of attribute numero.
11 12 13 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 11 def numero @numero end |
Class Method Details
.map(source, opts = {}) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 15 def self.map(source, opts={}) cep, endereco, complemento, numero, bairro = attrs_from source, opts, :cep, :endereco, :complemento, :numero, :bairro new source: source, opts: opts, cep: cep, endereco: endereco, complemento: complemento, numero: numero, bairro: bairro end |
Instance Method Details
#attributes ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 23 def attributes { endereco: @endereco, complemento: @complemento, numero: @numero, bairro: @bairro, cep: @cep } end |
#build_xml(builder) ⇒ Object
33 34 35 36 37 |
# File 'lib/cieloz/requisicao_transacao/dados_avs.rb', line 33 def build_xml builder builder.tag! 'avs' do builder.cdata! attr_to_xml end end |