Class: ArquivoHorario

Inherits:
Object
  • Object
show all
Includes:
ArquivoData
Defined in:
lib/odorico/arquivo_horario.rb

Constant Summary collapse

ATRIBUTOS =
{
  codigo_horario_contratual: { key: 'CodigoHorarioContratual', type: Types::String },
  dados_horario_hora_entrada: { key: 'DadosHorario_HoraEntrada', type: Types::String },
  dados_horario_hora_saida: { key: 'DadosHorario_HoraSaida', type: Types::String },
  dados_horario_periodo_horario_flexivel: { key: 'DadosHorario_PeriodoHorarioFlexivel', type: Types::SNBool },
  descricao_proc_emi: { key: 'DescricaoProcEmi', type: Types::String.optional },
  intervalos: { key: 'DadosHorario_ListaHorarioIntervalo', attributes: {
    duracao_intervalo: { key: 'DuracaoIntervalo', type: Types::Integer },
    inicio_intervalo: { key: 'InicioIntervalo', type: Types::String.optional },
    termino_intervalo: { key: 'TerminoIntervalo', type: Types::String.optional },
    tipo_intervalo: { key: 'TipoIntervalo', type: Types::TipoIntervalo }
  } }
}.freeze
ATRIBUTOS_IGNORADOS =
%w[
  IdEventoXml
  NrReciboEventoOriginal
  InicioValidade
  DadosHorario_DuracaoJornada
  DesejaIncluirIntervalo
  RequestVerificationToken
  SomenteVisualizacao
  TelaHorarioIntervalo_DuracaoIntervalo
  TelaHorarioIntervalo_TerminoIntervalo
  TelaHorarioIntervalo_InicioIntervalo
  TelaHorarioIntervalo_TipoIntervalo
  TelaHorarioIntervalo_TipoIntervalo_TEXT
  BloquearCodigo
  BloquearAntigoPeriodoValidade
  VerProc
].freeze
ATRIBUTOS_NAO_SUPORTADOS =
{
  'Não suportamos encerramento de histórico de evento tabela': %w[
    FimValidade
  ]
}.freeze
ATRIBUTOS_DESCARTADOS =
{}.freeze

Method Summary

Methods included from ArquivoData

#alertas, #atributos, #erros, #processar