Class: Nfse::Envio::Rps

Inherits:
Mustache
  • Object
show all
Defined in:
lib/nfse/rps.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Rps

Returns a new instance of Rps.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/nfse/rps.rb', line 12

def initialize(args)
    self.template_path = File.expand_path("../../templates/", __FILE__)
    
    @numero = args[:numero]
    @serie = args[:serie]
    @tipo = args[:tipo]
    @data_emissao = args[:data_emissao]
    @data_competencia = args[:data_competencia]
    @regime_tributacao = args[:regime_tributacao]
    @icentivo_fiscal = args[:icentivo_fiscal]
    @simples_nacional = args[:simples_nacional]
end

Instance Attribute Details

#data_competenciaObject

Returns the value of attribute data_competencia.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def data_competencia
  @data_competencia
end

#data_emissaoObject

Returns the value of attribute data_emissao.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def data_emissao
  @data_emissao
end

#icentivo_fiscalObject

Returns the value of attribute icentivo_fiscal.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def icentivo_fiscal
  @icentivo_fiscal
end

#numeroObject

Returns the value of attribute numero.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def numero
  @numero
end

#prestadorObject

Returns the value of attribute prestador.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def prestador
  @prestador
end

#regime_tributacaoObject

Returns the value of attribute regime_tributacao.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def regime_tributacao
  @regime_tributacao
end

#serieObject

Returns the value of attribute serie.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def serie
  @serie
end

#servicoObject

Returns the value of attribute servico.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def servico
  @servico
end

#simples_nacionalObject

Returns the value of attribute simples_nacional.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def simples_nacional
  @simples_nacional
end

#tipoObject

Returns the value of attribute tipo.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def tipo
  @tipo
end

#tomadorObject

Returns the value of attribute tomador.



7
8
9
# File 'lib/nfse/rps.rb', line 7

def tomador
  @tomador
end