Class: Cieloz::Requisicao::Erro

Inherits:
Resposta
  • Object
show all
Defined in:
lib/cieloz/requisicao/resposta/erro.rb

Instance Attribute Summary collapse

Attributes inherited from Resposta

#xml

Instance Method Summary collapse

Methods inherited from Resposta

from

Methods included from Helpers

#attributes=, #dasherize_attr, included, #initialize

Instance Attribute Details

#codigoObject

Returns the value of attribute codigo.



4
5
6
# File 'lib/cieloz/requisicao/resposta/erro.rb', line 4

def codigo
  @codigo
end

#mensagemObject

Returns the value of attribute mensagem.



4
5
6
# File 'lib/cieloz/requisicao/resposta/erro.rb', line 4

def mensagem
  @mensagem
end

Instance Method Details

#statusObject



10
11
12
# File 'lib/cieloz/requisicao/resposta/erro.rb', line 10

def status
  codigo
end

#success?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/cieloz/requisicao/resposta/erro.rb', line 6

def success?
  false
end