Class: ForemanMco::Command::ServiceBase
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/foreman_mco/command/service_commands.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#service_name ⇒ Object
readonly
Returns the value of attribute service_name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs) ⇒ ServiceBase
constructor
A new instance of ServiceBase.
Methods inherited from Base
Constructor Details
#initialize(attrs) ⇒ ServiceBase
Returns a new instance of ServiceBase.
8 9 10 11 |
# File 'app/models/foreman_mco/command/service_commands.rb', line 8 def initialize(attrs) super @service_name = attrs[:service_name] end |
Instance Attribute Details
#service_name ⇒ Object (readonly)
Returns the value of attribute service_name.
5 6 7 |
# File 'app/models/foreman_mco/command/service_commands.rb', line 5 def service_name @service_name end |