Class: Yanapiri::Entrega::ModoCorreccion
- Inherits:
-
Object
- Object
- Yanapiri::Entrega::ModoCorreccion
show all
- Defined in:
- lib/yanapiri/entrega.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of ModoCorreccion.
91
92
93
|
# File 'lib/yanapiri/entrega.rb', line 91
def initialize(entrega)
@entrega = entrega
end
|
Instance Method Details
#mensaje_fuera_de_termino ⇒ Object
99
100
101
|
# File 'lib/yanapiri/entrega.rb', line 99
def mensaje_fuera_de_termino
"**Ojo:** tu último commit fue #{formato_humano fecha}, pero la fecha límite era #{formato_humano fecha_limite}.\n\n¡Tenés que respetar la fecha de entrega establecida! :point_up:"
end
|
#mensaje_pull_request ⇒ Object
95
96
97
|
# File 'lib/yanapiri/entrega.rb', line 95
def mensaje_pull_request
if fuera_de_termino? then mensaje_fuera_de_termino else '' end
end
|