Class: Nfe::Models::NFeProc
- Inherits:
-
Object
- Object
- Nfe::Models::NFeProc
- Includes:
- ActiveModel::Model, Helpers::XmlModel::NfeModel
- Defined in:
- lib/nfe/models/nfeProc.rb
Instance Attribute Summary collapse
-
#nfe ⇒ Object
readonly
Returns the value of attribute nfe.
-
#protNFe ⇒ Object
readonly
Returns the value of attribute protNFe.
Instance Method Summary collapse
-
#initialize(nfe, protNFe) ⇒ NFeProc
constructor
A new instance of NFeProc.
- #to_xml ⇒ Object
Methods included from Helpers::XmlModel::NfeModel
#add_elements, #check_present, included, #parse!, #parse_elements, #present?, #validate_optional_attributes, #validate_required_attributes
Constructor Details
#initialize(nfe, protNFe) ⇒ NFeProc
Returns a new instance of NFeProc.
9 10 11 12 |
# File 'lib/nfe/models/nfeProc.rb', line 9 def initialize(nfe, protNFe) @nfe = nfe @protNFe = protNFe end |
Instance Attribute Details
#nfe ⇒ Object (readonly)
Returns the value of attribute nfe.
7 8 9 |
# File 'lib/nfe/models/nfeProc.rb', line 7 def nfe @nfe end |
#protNFe ⇒ Object (readonly)
Returns the value of attribute protNFe.
7 8 9 |
# File 'lib/nfe/models/nfeProc.rb', line 7 def protNFe @protNFe end |