Class: NfsePrefeituraSp::Types::TpIbsCbs
- Defined in:
- lib/nfse_prefeitura_sp/types/tp_ibs_cbs.rb
Overview
tpIBSCBS
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
11 12 13 14 15 16 17 |
# File 'lib/nfse_prefeitura_sp/types/tp_ibs_cbs.rb', line 11 def (xml) fin_nfse.add_tag_to_xml(xml) ind_final.add_tag_to_xml(xml) c_ind_op.add_tag_to_xml(xml) ind_dest.add_tag_to_xml(xml) valores.add_tag_to_xml(xml) end |
#initialize_children ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/nfse_prefeitura_sp/types/tp_ibs_cbs.rb', line 3 def initialize_children @children[:fin_nfse] = NfsePrefeituraSp::Types::Simple.new('finNFSe', @data[:fin_nfse]) @children[:ind_final] = NfsePrefeituraSp::Types::Simple.new('indFinal', @data[:ind_final]) @children[:c_ind_op] = NfsePrefeituraSp::Types::Simple.new('cIndOp', @data[:c_ind_op]) @children[:ind_dest] = NfsePrefeituraSp::Types::Simple.new('indDest', @data[:ind_dest]) @children[:valores] = NfsePrefeituraSp::Types::TpValores.new('valores', @data[:valores]) end |