Class: NfeReader::Person
- Inherits:
-
Object
- Object
- NfeReader::Person
- Includes:
- AttributeHelper
- Defined in:
- lib/nfe_reader/person.rb
Constant Summary
Constants included from AttributeHelper
Instance Attribute Summary collapse
-
#city_registration ⇒ Object
readonly
Returns the value of attribute city_registration.
-
#cnae ⇒ Object
readonly
Returns the value of attribute cnae.
-
#cnpj ⇒ Object
readonly
Returns the value of attribute cnpj.
-
#cpf ⇒ Object
readonly
Returns the value of attribute cpf.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#fantasy ⇒ Object
readonly
Returns the value of attribute fantasy.
-
#foreign_code ⇒ Object
readonly
Returns the value of attribute foreign_code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#owner_kind ⇒ Object
readonly
Returns the value of attribute owner_kind.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#regime ⇒ Object
readonly
Returns the value of attribute regime.
-
#rntrc ⇒ Object
readonly
Returns the value of attribute rntrc.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#state_registration ⇒ Object
readonly
Returns the value of attribute state_registration.
-
#state_registration_code ⇒ Object
readonly
Returns the value of attribute state_registration_code.
-
#state_registration_st ⇒ Object
readonly
Returns the value of attribute state_registration_st.
-
#suframa ⇒ Object
readonly
Returns the value of attribute suframa.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Person
constructor
Fields Values.
Methods included from AttributeHelper
#attributes, #attributes_to_hash
Constructor Details
#initialize(attrs = {}) ⇒ Person
Fields Values
CRT: 1 - Simples Nacional,
2 - Simples Nacional – excesso de sublimite de receita bruta,
3 - Regime Normal
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/nfe_reader/person.rb', line 17 def initialize(attrs = {}) # CNPJ @cnpj = attrs[:CNPJ] # CPF @cpf = attrs[:CPF] # Inscricao Estadual @state_registration = attrs[:IE] # Inscricao Estadual ST @state_registration_st = attrs[:IEST] # Codigo Inscricao Estadual @state_registration_code = attrs[:indIEDest] # Incsricao municipal @city_registration = attrs[:IM] # Nome @name = attrs[:xNome] # Fantasia Empresa @fantasy = attrs[:xFant] # Telefone @phone = attrs[:fone] # Incricao Suframa @suframa = attrs[:ISUF] # Email @email = attrs[:email] # Estado @state = attrs[:UF] # Regime @regime = attrs[:CRT] # CNAE @cnae = attrs[:CNAE] # Identificação do destinatário no caso de comprador estrangeiro @foreign_code = attrs[:idEstrangeiro] # Proprietario do Veiculo @rntrc = attrs[:RNTRC] @owner_kind = attrs[:tpProp] end |
Instance Attribute Details
#city_registration ⇒ Object (readonly)
Returns the value of attribute city_registration.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def city_registration @city_registration end |
#cnae ⇒ Object (readonly)
Returns the value of attribute cnae.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def cnae @cnae end |
#cnpj ⇒ Object (readonly)
Returns the value of attribute cnpj.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def cnpj @cnpj end |
#cpf ⇒ Object (readonly)
Returns the value of attribute cpf.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def cpf @cpf end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def email @email end |
#fantasy ⇒ Object (readonly)
Returns the value of attribute fantasy.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def fantasy @fantasy end |
#foreign_code ⇒ Object (readonly)
Returns the value of attribute foreign_code.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def foreign_code @foreign_code end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def name @name end |
#owner_kind ⇒ Object (readonly)
Returns the value of attribute owner_kind.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def owner_kind @owner_kind end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def phone @phone end |
#regime ⇒ Object (readonly)
Returns the value of attribute regime.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def regime @regime end |
#rntrc ⇒ Object (readonly)
Returns the value of attribute rntrc.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def rntrc @rntrc end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def state @state end |
#state_registration ⇒ Object (readonly)
Returns the value of attribute state_registration.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def state_registration @state_registration end |
#state_registration_code ⇒ Object (readonly)
Returns the value of attribute state_registration_code.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def state_registration_code @state_registration_code end |
#state_registration_st ⇒ Object (readonly)
Returns the value of attribute state_registration_st.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def state_registration_st @state_registration_st end |
#suframa ⇒ Object (readonly)
Returns the value of attribute suframa.
5 6 7 |
# File 'lib/nfe_reader/person.rb', line 5 def suframa @suframa end |