Class: Nfe::Removal
- Inherits:
-
Object
- Object
- Nfe::Removal
- Defined in:
- lib/nfe_reader/removal.rb
Overview
Identificação do Local de Retirada
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#city_code ⇒ Object
readonly
Returns the value of attribute city_code.
-
#cnpj ⇒ Object
readonly
Returns the value of attribute cnpj.
-
#complement ⇒ Object
readonly
Returns the value of attribute complement.
-
#cpf ⇒ Object
readonly
Returns the value of attribute cpf.
-
#neighborhood ⇒ Object
readonly
Returns the value of attribute neighborhood.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Removal
constructor
A new instance of Removal.
Constructor Details
#initialize(attrs = {}) ⇒ Removal
Returns a new instance of Removal.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/nfe_reader/removal.rb', line 8 def initialize(attrs = {}) @cnpj = attrs[:CNPJ] @cpf = attrs[:CPF] @address = attrs[:xLgr] @number = attrs[:nro] @complement = attrs[:xCpl] @neighborhood = attrs[:xBairro] @city_code = attrs[:cMun] @city = attrs[:xMun] @state = attrs[:UF] end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def address @address end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def city @city end |
#city_code ⇒ Object (readonly)
Returns the value of attribute city_code.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def city_code @city_code end |
#cnpj ⇒ Object (readonly)
Returns the value of attribute cnpj.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def cnpj @cnpj end |
#complement ⇒ Object (readonly)
Returns the value of attribute complement.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def complement @complement end |
#cpf ⇒ Object (readonly)
Returns the value of attribute cpf.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def cpf @cpf end |
#neighborhood ⇒ Object (readonly)
Returns the value of attribute neighborhood.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def neighborhood @neighborhood end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def number @number end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/nfe_reader/removal.rb', line 5 def state @state end |