Class: Prepd::Creator
- Inherits:
-
Object
- Object
- Prepd::Creator
- Includes:
- ActiveModel::Model, ActiveModel::Validations::Callbacks
- Defined in:
- lib/prepd/cli/commands.rb
Constant Summary collapse
- VALID_CLASSES =
%w(workspace cluster project).freeze
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
62 63 64 |
# File 'lib/prepd/cli/commands.rb', line 62 def type @type end |
Instance Method Details
#klass ⇒ Object
72 73 74 |
# File 'lib/prepd/cli/commands.rb', line 72 def klass Kernel.const_get("Prepd::#{type.capitalize}") end |
#set_type_down ⇒ Object
68 69 70 |
# File 'lib/prepd/cli/commands.rb', line 68 def set_type_down self.type = self.type.downcase end |