Class: RubyXmlNfe::Fat
- Inherits:
-
Object
- Object
- RubyXmlNfe::Fat
- Defined in:
- lib/ruby_xml_nfe/fat.rb
Instance Attribute Summary collapse
-
#nFat ⇒ Object
readonly
Returns the value of attribute nFat.
-
#vDesc ⇒ Object
readonly
Returns the value of attribute vDesc.
-
#vLiq ⇒ Object
readonly
Returns the value of attribute vLiq.
-
#vOrig ⇒ Object
readonly
Returns the value of attribute vOrig.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(xml, params) ⇒ Fat
constructor
A new instance of Fat.
Constructor Details
#initialize(xml, params) ⇒ Fat
Returns a new instance of Fat.
5 6 7 8 9 10 11 |
# File 'lib/ruby_xml_nfe/fat.rb', line 5 def initialize(xml, params) @xml = xml @nFat = params[:nFat] @vOrig = params[:vOrig] @vDesc = params[:vDesc] @vLiq = params[:vLiq] end |
Instance Attribute Details
#nFat ⇒ Object (readonly)
Returns the value of attribute nFat.
3 4 5 |
# File 'lib/ruby_xml_nfe/fat.rb', line 3 def nFat @nFat end |
#vDesc ⇒ Object (readonly)
Returns the value of attribute vDesc.
3 4 5 |
# File 'lib/ruby_xml_nfe/fat.rb', line 3 def vDesc @vDesc end |
#vLiq ⇒ Object (readonly)
Returns the value of attribute vLiq.
3 4 5 |
# File 'lib/ruby_xml_nfe/fat.rb', line 3 def vLiq @vLiq end |
#vOrig ⇒ Object (readonly)
Returns the value of attribute vOrig.
3 4 5 |
# File 'lib/ruby_xml_nfe/fat.rb', line 3 def vOrig @vOrig end |
#xml ⇒ Object (readonly)
Returns the value of attribute xml.
3 4 5 |
# File 'lib/ruby_xml_nfe/fat.rb', line 3 def xml @xml end |
Instance Method Details
#build ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/ruby_xml_nfe/fat.rb', line 13 def build xml.fat do xml.nFat nFat xml.vOrig vOrig xml.vDesc vDesc xml.vLiq vLiq end end |