Class: Manageheroku::Formation
- Inherits:
-
Object
- Object
- Manageheroku::Formation
- Defined in:
- lib/manageheroku/formation.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, procs) ⇒ Formation
constructor
A new instance of Formation.
- #update_params ⇒ Object
Constructor Details
#initialize(name, procs) ⇒ Formation
Returns a new instance of Formation.
4 5 6 7 |
# File 'lib/manageheroku/formation.rb', line 4 def initialize(name, procs) @name = name @procs = procs end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/manageheroku/formation.rb', line 3 def name @name end |
Instance Method Details
#update_params ⇒ Object
9 10 11 |
# File 'lib/manageheroku/formation.rb', line 9 def update_params [@name, {updates: @procs}] end |