Class: Teodoro::Leiaute::ArquivoS2200::Leiaute2

Inherits:
Object
  • Object
show all
Defined in:
lib/teodoro/leiaute/arquivo_s2200.rb

Instance Method Summary collapse

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_anteriorObject



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_funcaoObject



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_cargoObject



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_trabalhadorObject



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_fgtsObject



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

#horarioObject



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_fgtsObject



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