Class: NfeReader::Information
- Inherits:
-
Object
- Object
- NfeReader::Information
- Includes:
- AttributeHelper, CreatorHelper
- Defined in:
- lib/nfe_reader/information.rb
Constant Summary
Constants included from AttributeHelper
Instance Attribute Summary collapse
-
#information ⇒ Object
readonly
Returns the value of attribute information.
-
#information_taxpayer ⇒ Object
readonly
Returns the value of attribute information_taxpayer.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#references ⇒ Object
readonly
Returns the value of attribute references.
-
#taxpayer_messages ⇒ Object
readonly
Returns the value of attribute taxpayer_messages.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Information
constructor
A new instance of Information.
Methods included from CreatorHelper
#create_resource, #create_resources, #to_array
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Information
Returns a new instance of Information.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/nfe_reader/information.rb', line 10 def initialize(attrs = {}) @information = attrs[:infAdFisco] @information_taxpayer = attrs[:infCpl] if attrs[:procRef] @references = to_array(attrs[:procRef]) end if attrs[:obsCont] @taxpayer_messages = to_array(attrs[:obsCont]) end if attrs[:obsFisco] @messages = to_array(attrs[:obsFisco]) end end |
Instance Attribute Details
#information ⇒ Object (readonly)
Returns the value of attribute information.
7 8 9 |
# File 'lib/nfe_reader/information.rb', line 7 def information @information end |
#information_taxpayer ⇒ Object (readonly)
Returns the value of attribute information_taxpayer.
7 8 9 |
# File 'lib/nfe_reader/information.rb', line 7 def information_taxpayer @information_taxpayer end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
7 8 9 |
# File 'lib/nfe_reader/information.rb', line 7 def @messages end |
#references ⇒ Object (readonly)
Returns the value of attribute references.
7 8 9 |
# File 'lib/nfe_reader/information.rb', line 7 def references @references end |
#taxpayer_messages ⇒ Object (readonly)
Returns the value of attribute taxpayer_messages.
7 8 9 |
# File 'lib/nfe_reader/information.rb', line 7 def @taxpayer_messages end |