Class: Manageheroku::Formation

Inherits:
Object
  • Object
show all
Defined in:
lib/manageheroku/formation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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_paramsObject



9
10
11
# File 'lib/manageheroku/formation.rb', line 9

def update_params
  [@name, {updates: @procs}]
end