Class: NfeReader::Export
- Inherits:
-
Object
- Object
- NfeReader::Export
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/export.rb
Overview
Informações de Comércio Exterior
Constant Summary
Constants included from AttributeHelper
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Export
constructor
A new instance of Export.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Export
Returns a new instance of Export.
9 10 11 12 |
# File 'lib/nfe_reader/export.rb', line 9 def initialize(attrs = {}) @state = attrs[:UFEmbarq] @address = attrs[:xLocEmbarq] end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
7 8 9 |
# File 'lib/nfe_reader/export.rb', line 7 def address @address end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
7 8 9 |
# File 'lib/nfe_reader/export.rb', line 7 def state @state end |