Method: ForemanPatch::Window#move_to
- Defined in:
- app/models/foreman_patch/window.rb
#move_to(time) ⇒ Object
55 56 57 58 59 |
# File 'app/models/foreman_patch/window.rb', line 55 def move_to(time) span = duration self.start_at = time self.end_by = time + span end |