Class: Nfe::Reader::Information
- Inherits:
-
Object
- Object
- Nfe::Reader::Information
- Includes:
- AttributeHelper, CreatorHelper
- Defined in:
- lib/nfe_reader/information.rb
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.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/nfe_reader/information.rb', line 11 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.
8 9 10 |
# File 'lib/nfe_reader/information.rb', line 8 def information @information end |
#information_taxpayer ⇒ Object (readonly)
Returns the value of attribute information_taxpayer.
8 9 10 |
# File 'lib/nfe_reader/information.rb', line 8 def information_taxpayer @information_taxpayer end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
8 9 10 |
# File 'lib/nfe_reader/information.rb', line 8 def @messages end |
#references ⇒ Object (readonly)
Returns the value of attribute references.
8 9 10 |
# File 'lib/nfe_reader/information.rb', line 8 def references @references end |
#taxpayer_messages ⇒ Object (readonly)
Returns the value of attribute taxpayer_messages.
8 9 10 |
# File 'lib/nfe_reader/information.rb', line 8 def @taxpayer_messages end |