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