Class: Teodoro::Leiaute::ArquivoS2200::Leiaute2
- Inherits:
-
Object
- Object
- Teodoro::Leiaute::ArquivoS2200::Leiaute2
- Defined in:
- lib/teodoro/leiaute/arquivo_s2200.rb
Instance Method Summary collapse
- #cnpj_do_empregador_anterior ⇒ Object
- #codigo_da_funcao ⇒ Object
- #codigo_do_cargo ⇒ Object
- #condicao_de_ingresso_no_brasil_do_trabalhador ⇒ Object
- #data_de_opcao_pelo_fgts ⇒ Object
- #horario ⇒ Object
-
#initialize(evento) ⇒ Leiaute2
constructor
A new instance of Leiaute2.
- #opcao_pelo_fgts ⇒ Object
Constructor Details
#initialize(evento) ⇒ Leiaute2
432 433 434 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 432 def initialize(evento) @evento = evento end |
Instance Method Details
#cnpj_do_empregador_anterior ⇒ Object
463 464 465 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 463 def cnpj_do_empregador_anterior @cnpj_do_empregador_anterior ||= evento['vinculo/sucessaoVinc/cnpjEmpregAnt'] end |
#codigo_da_funcao ⇒ Object
459 460 461 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 459 def codigo_da_funcao @codigo_da_funcao ||= evento['vinculo/infoContrato/codFuncao'] end |
#codigo_do_cargo ⇒ Object
455 456 457 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 455 def codigo_do_cargo @codigo_do_cargo ||= evento['vinculo/infoContrato/codCargo'] end |
#condicao_de_ingresso_no_brasil_do_trabalhador ⇒ Object
436 437 438 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 436 def condicao_de_ingresso_no_brasil_do_trabalhador @condicao_de_ingresso_no_brasil_do_trabalhador ||= evento['trabalhador/trabEstrangeiro/classTrabEstrang'] end |
#data_de_opcao_pelo_fgts ⇒ Object
451 452 453 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 451 def data_de_opcao_pelo_fgts @data_de_opcao_pelo_fgts ||= evento['vinculo/infoRegimeTrab/infoCeletista/FGTS/dtOpcFGTS'] end |
#horario ⇒ Object
440 441 442 443 444 445 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 440 def horario @horario ||= Obj.new( tipo_de_jornada: evento['vinculo/infoContrato/horContratual/tpJornada'], descricao_da_jornada: evento['vinculo/infoContrato/horContratual/dscTpJorn'] ) end |
#opcao_pelo_fgts ⇒ Object
447 448 449 |
# File 'lib/teodoro/leiaute/arquivo_s2200.rb', line 447 def opcao_pelo_fgts @opcao_pelo_fgts ||= evento['vinculo/infoRegimeTrab/infoCeletista/FGTS/opcFGTS'] end |