Class: Dynomatic::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/dynomatic/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



3
4
5
# File 'lib/dynomatic/configuration.rb', line 3

def adapter
  @adapter
end

#heroku_appObject

Returns the value of attribute heroku_app.



3
4
5
# File 'lib/dynomatic/configuration.rb', line 3

def heroku_app
  @heroku_app
end

#heroku_tokenObject

Returns the value of attribute heroku_token.



3
4
5
# File 'lib/dynomatic/configuration.rb', line 3

def heroku_token
  @heroku_token
end

#rulesObject

Returns the value of attribute rules.



3
4
5
# File 'lib/dynomatic/configuration.rb', line 3

def rules
  @rules
end

#worker_namesObject

Returns the value of attribute worker_names.



3
4
5
# File 'lib/dynomatic/configuration.rb', line 3

def worker_names
  @worker_names
end

Instance Method Details

#sorted_rulesObject



5
6
7
# File 'lib/dynomatic/configuration.rb', line 5

def sorted_rules
  @rules.sort_by { |rule| rule[:over] }
end