Class: Renalware::HD::Session::Closed

Inherits:
Renalware::HD::Session show all
Includes:
Document::Base
Defined in:
app/models/renalware/hd/session/closed.rb

Defined Under Namespace

Classes: SessionDocument

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Renalware::HD::Session

#compute_duration, #start_datetime, #stop_datetime

Methods included from Accountable

#first_or_create_by!, #save_by, #save_by!, #update_by

Class Method Details

.policy_classObject



20
21
22
# File 'app/models/renalware/hd/session/closed.rb', line 20

def self.policy_class
  ClosedSessionPolicy
end

Instance Method Details

#immutable?Boolean

Returns:

  • (Boolean)


24
25
26
27
28
# File 'app/models/renalware/hd/session/closed.rb', line 24

def immutable?
  return true unless persisted?

  temporary_editing_window_has_elapsed?
end