Class: NfeReader::Duplicate

Inherits:
Object
  • Object
show all
Includes:
AttributeHelper
Defined in:
lib/nfe_reader/billing/duplicate.rb

Constant Summary

Constants included from AttributeHelper

AttributeHelper::WITHELIST

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AttributeHelper

#attributes, #attributes_to_hash

Constructor Details

#initialize(attrs = {}) ⇒ Duplicate

Returns a new instance of Duplicate.



8
9
10
11
12
# File 'lib/nfe_reader/billing/duplicate.rb', line 8

def initialize(attrs = {})
  @number = attrs[:nDup]
  @expiration = attrs[:dVenc]
  @value = attrs[:vDup]
end

Instance Attribute Details

#expirationObject (readonly)

Returns the value of attribute expiration.



6
7
8
# File 'lib/nfe_reader/billing/duplicate.rb', line 6

def expiration
  @expiration
end

#numberObject (readonly)

Returns the value of attribute number.



6
7
8
# File 'lib/nfe_reader/billing/duplicate.rb', line 6

def number
  @number
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/nfe_reader/billing/duplicate.rb', line 6

def value
  @value
end