Class: ForemanDlm::DlmlockEvent

Inherits:
ApplicationRecord
  • Object
show all
Includes:
Authorizable, Expirable
Defined in:
app/models/foreman_dlm/dlmlock_event.rb

Constant Summary collapse

TYPES =
%w[release acquire enable disable fail].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.humanize_class_nameObject



11
12
13
# File 'app/models/foreman_dlm/dlmlock_event.rb', line 11

def self.humanize_class_name
  N_('Distributed Lock Event')
end

Instance Method Details

#humanized_typeObject



21
22
23
# File 'app/models/foreman_dlm/dlmlock_event.rb', line 21

def humanized_type
  _('Dlmlock Event')
end