Class: Dynomatic::Configuration
- Inherits:
-
Object
- Object
- Dynomatic::Configuration
- Defined in:
- lib/dynomatic/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#heroku_app ⇒ Object
Returns the value of attribute heroku_app.
-
#heroku_token ⇒ Object
Returns the value of attribute heroku_token.
-
#rules ⇒ Object
Returns the value of attribute rules.
-
#worker_names ⇒ Object
Returns the value of attribute worker_names.
Instance Method Summary collapse
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
3 4 5 |
# File 'lib/dynomatic/configuration.rb', line 3 def adapter @adapter end |
#heroku_app ⇒ Object
Returns the value of attribute heroku_app.
3 4 5 |
# File 'lib/dynomatic/configuration.rb', line 3 def heroku_app @heroku_app end |
#heroku_token ⇒ Object
Returns the value of attribute heroku_token.
3 4 5 |
# File 'lib/dynomatic/configuration.rb', line 3 def heroku_token @heroku_token end |
#rules ⇒ Object
Returns the value of attribute rules.
3 4 5 |
# File 'lib/dynomatic/configuration.rb', line 3 def rules @rules end |
#worker_names ⇒ Object
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_rules ⇒ Object
5 6 7 |
# File 'lib/dynomatic/configuration.rb', line 5 def sorted_rules @rules.sort_by { |rule| rule[:over] } end |