Class: Nfe::Reader::Duplicate
- Inherits:
-
Object
- Object
- Nfe::Reader::Duplicate
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/collection/duplicate.rb
Instance Attribute Summary collapse
-
#expiration ⇒ Object
readonly
Returns the value of attribute expiration.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Duplicate
constructor
A new instance of Duplicate.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Duplicate
Returns a new instance of Duplicate.
9 10 11 12 13 |
# File 'lib/nfe_reader/collection/duplicate.rb', line 9 def initialize(attrs = {}) @number = attrs[:nDup] @expiration = attrs[:dVenc] @value = attrs[:vDup] end |
Instance Attribute Details
#expiration ⇒ Object (readonly)
Returns the value of attribute expiration.
7 8 9 |
# File 'lib/nfe_reader/collection/duplicate.rb', line 7 def expiration @expiration end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
7 8 9 |
# File 'lib/nfe_reader/collection/duplicate.rb', line 7 def number @number end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/nfe_reader/collection/duplicate.rb', line 7 def value @value end |