Class: ForemanAcd::ForemanHost
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ForemanAcd::ForemanHost
- Includes:
- Authorizable
- Defined in:
- app/models/foreman_acd/foreman_host.rb
Overview
Foreman Host
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.humanize_class_name(_name = nil) ⇒ Object
15 16 17 |
# File 'app/models/foreman_acd/foreman_host.rb', line 15 def self.humanize_class_name(_name = nil) _('Foreman Host') end |
.permission_name ⇒ Object
27 28 29 |
# File 'app/models/foreman_acd/foreman_host.rb', line 27 def self. 'foreman_hosts' end |
Instance Method Details
#existing_host? ⇒ Boolean
23 24 25 |
# File 'app/models/foreman_acd/foreman_host.rb', line 23 def existing_host? is_existing_host end |
#fresh_host? ⇒ Boolean
19 20 21 |
# File 'app/models/foreman_acd/foreman_host.rb', line 19 def fresh_host? !is_existing_host end |