Class: NfseIssnet::Base::RequisicaoAbrasf

Inherits:
Object
  • Object
show all
Defined in:
lib/nfse_issnet/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ RequisicaoAbrasf

Returns a new instance of RequisicaoAbrasf.



57
58
59
# File 'lib/nfse_issnet/base.rb', line 57

def initialize(xml)
  self.xml = xml
end

Instance Attribute Details

#xmlObject

Returns the value of attribute xml.



55
56
57
# File 'lib/nfse_issnet/base.rb', line 55

def xml
  @xml
end

Instance Method Details

#to_sObject



61
62
63
64
65
66
67
68
69
# File 'lib/nfse_issnet/base.rb', line 61

def to_s
  builder = Builder::XmlMarkup.new

  builder.tag!('nfd:xml') { |b|
    b.cdata! xml
  }

  builder
end