Class: NfsePrefeituraSp::Types::TpChaveRps

Inherits:
Complex
  • Object
show all
Defined in:
lib/nfse_prefeitura_sp/types/tp_chave_rps.rb

Overview

tpChaveRPS

Instance Method Summary collapse

Methods inherited from Complex

#add_tag_to_xml, #has_any_child_value?, #initialize

Constructor Details

This class inherits a constructor from NfsePrefeituraSp::Types::Complex

Instance Method Details

#add_children_tags_to_xml(xml) ⇒ Object



9
10
11
12
13
# File 'lib/nfse_prefeitura_sp/types/tp_chave_rps.rb', line 9

def add_children_tags_to_xml(xml)
  inscricao_prestador.add_tag_to_xml(xml)
  serie_rps.add_tag_to_xml(xml)
  numero_rps.add_tag_to_xml(xml)
end

#initialize_childrenObject



3
4
5
6
7
# File 'lib/nfse_prefeitura_sp/types/tp_chave_rps.rb', line 3

def initialize_children
  @children[:inscricao_prestador] = NfsePrefeituraSp::Types::Simple.new('InscricaoPrestador', @data[:inscricao_prestador])
  @children[:serie_rps]           = NfsePrefeituraSp::Types::Simple.new('SerieRPS', @data[:serie_rps])
  @children[:numero_rps]          = NfsePrefeituraSp::Types::Simple.new('NumeroRPS', @data[:numero_rps])
end