class RubyXmlNfe::Cobr
Attributes
fat_params[R]
tag_dup[R]
xml[R]
Public Class Methods
new(xml, params)
click to toggle source
# File lib/ruby_xml_nfe/cobr.rb, line 8 def initialize(xml, params) @xml = xml @fat_params = params[:fat] @tag_dup = params[:dup] end
Public Instance Methods
build()
click to toggle source
# File lib/ruby_xml_nfe/cobr.rb, line 14 def build xml.cobr do fat = RubyXmlNfe::Fat.new(xml, fat_params) fat.build tag_dup.map do |dup_params| _dup = RubyXmlNfe::Dup.new(xml, dup_params) _dup.build end end end