Class: Katello::PurposeAddonsStatus
- Inherits:
-
HostStatus::Status
- Object
- HostStatus::Status
- Katello::PurposeAddonsStatus
- Defined in:
- app/models/katello/purpose_addons_status.rb
Constant Summary collapse
- UNKNOWN =
Katello::PurposeStatus::UNKNOWN
Class Method Summary collapse
Instance Method Summary collapse
- #relevant?(_options = {}) ⇒ Boolean
- #substatus?(_options = {}) ⇒ Boolean
- #to_label(_options = {}) ⇒ Object
- #to_status(options = {}) ⇒ Object
Class Method Details
.humanized_name ⇒ Object
8 9 10 |
# File 'app/models/katello/purpose_addons_status.rb', line 8 def self.humanized_name 'purpose_addons' end |
.status_name ⇒ Object
4 5 6 |
# File 'app/models/katello/purpose_addons_status.rb', line 4 def self.status_name N_('Addons') end |
Instance Method Details
#relevant?(_options = {}) ⇒ Boolean
20 21 22 |
# File 'app/models/katello/purpose_addons_status.rb', line 20 def relevant?( = {}) host.subscription_facet.try(:uuid) end |
#substatus?(_options = {}) ⇒ Boolean
24 25 26 |
# File 'app/models/katello/purpose_addons_status.rb', line 24 def substatus?( = {}) true end |
#to_label(_options = {}) ⇒ Object
12 13 14 |
# File 'app/models/katello/purpose_addons_status.rb', line 12 def to_label( = {}) Katello::PurposeStatus.to_label(status) end |
#to_status(options = {}) ⇒ Object
16 17 18 |
# File 'app/models/katello/purpose_addons_status.rb', line 16 def to_status( = {}) Katello::PurposeStatus.to_status(self, :addons_status, ) end |