Class: Nfse::Envio::Rps
- Inherits:
-
Mustache
- Object
- Mustache
- Nfse::Envio::Rps
- Defined in:
- lib/nfse/rps.rb
Instance Attribute Summary collapse
-
#data_competencia ⇒ Object
Returns the value of attribute data_competencia.
-
#data_emissao ⇒ Object
Returns the value of attribute data_emissao.
-
#icentivo_fiscal ⇒ Object
Returns the value of attribute icentivo_fiscal.
-
#numero ⇒ Object
Returns the value of attribute numero.
-
#prestador ⇒ Object
Returns the value of attribute prestador.
-
#regime_tributacao ⇒ Object
Returns the value of attribute regime_tributacao.
-
#serie ⇒ Object
Returns the value of attribute serie.
-
#servico ⇒ Object
Returns the value of attribute servico.
-
#simples_nacional ⇒ Object
Returns the value of attribute simples_nacional.
-
#tipo ⇒ Object
Returns the value of attribute tipo.
-
#tomador ⇒ Object
Returns the value of attribute tomador.
Instance Method Summary collapse
-
#initialize(args) ⇒ Rps
constructor
A new instance of Rps.
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.("../../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_competencia ⇒ Object
Returns the value of attribute data_competencia.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def data_competencia @data_competencia end |
#data_emissao ⇒ Object
Returns the value of attribute data_emissao.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def data_emissao @data_emissao end |
#icentivo_fiscal ⇒ Object
Returns the value of attribute icentivo_fiscal.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def icentivo_fiscal @icentivo_fiscal end |
#numero ⇒ Object
Returns the value of attribute numero.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def numero @numero end |
#prestador ⇒ Object
Returns the value of attribute prestador.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def prestador @prestador end |
#regime_tributacao ⇒ Object
Returns the value of attribute regime_tributacao.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def regime_tributacao @regime_tributacao end |
#serie ⇒ Object
Returns the value of attribute serie.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def serie @serie end |
#servico ⇒ Object
Returns the value of attribute servico.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def servico @servico end |
#simples_nacional ⇒ Object
Returns the value of attribute simples_nacional.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def simples_nacional @simples_nacional end |
#tipo ⇒ Object
Returns the value of attribute tipo.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def tipo @tipo end |
#tomador ⇒ Object
Returns the value of attribute tomador.
7 8 9 |
# File 'lib/nfse/rps.rb', line 7 def tomador @tomador end |