Class: Nfe::Reader::Removal
- Inherits:
-
Object
- Object
- Nfe::Reader::Removal
- Includes:
- AttributeHelper
- 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.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Removal
Returns a new instance of Removal.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe_reader/removal.rb', line 11 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.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def address @address end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def city @city end |
#city_code ⇒ Object (readonly)
Returns the value of attribute city_code.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def city_code @city_code end |
#cnpj ⇒ Object (readonly)
Returns the value of attribute cnpj.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def cnpj @cnpj end |
#complement ⇒ Object (readonly)
Returns the value of attribute complement.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def complement @complement end |
#cpf ⇒ Object (readonly)
Returns the value of attribute cpf.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def cpf @cpf end |
#neighborhood ⇒ Object (readonly)
Returns the value of attribute neighborhood.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def neighborhood @neighborhood end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def number @number end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
8 9 10 |
# File 'lib/nfe_reader/removal.rb', line 8 def state @state end |