Class: Teodoro::Empresa::Impl::ContratosDeTrabalhoSemVinculo::Contrato

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/teodoro/empresa.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#afastamentoObject

Returns the value of attribute afastamento.



260
261
262
# File 'lib/teodoro/empresa.rb', line 260

def afastamento
  @afastamento
end

#data_do_termino=(value) ⇒ Object

Sets the attribute data_do_termino



262
263
264
# File 'lib/teodoro/empresa.rb', line 262

def data_do_termino=(value)
  @data_do_termino = value
end

Instance Method Details

#ativo?(data) ⇒ Boolean



264
265
266
# File 'lib/teodoro/empresa.rb', line 264

def ativo?(data)
  data_de_inicio <= data && (!data_do_termino || data_do_termino >= data)
end