Class: WarmingDrawer::Configuration
- Inherits:
-
Object
- Object
- WarmingDrawer::Configuration
- Defined in:
- lib/warming_drawer/configuration.rb
Instance Attribute Summary collapse
-
#basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password.
-
#basic_auth_username ⇒ Object
Returns the value of attribute basic_auth_username.
-
#preheat_url ⇒ Object
Returns the value of attribute preheat_url.
-
#queue_name ⇒ Object
Returns the value of attribute queue_name.
-
#queue_system ⇒ Object
Returns the value of attribute queue_system.
-
#retry ⇒ Object
Returns the value of attribute retry.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 |
# File 'lib/warming_drawer/configuration.rb', line 5 def initialize @queue_name = 'high' @retry = false # TODO: would be nice to have values: # :inline, :sidekiq, :resque, :delayed_job # use Rails queue if defined @queue_system = :inline end |
Instance Attribute Details
#basic_auth_password ⇒ Object
Returns the value of attribute basic_auth_password.
3 4 5 |
# File 'lib/warming_drawer/configuration.rb', line 3 def basic_auth_password @basic_auth_password end |
#basic_auth_username ⇒ Object
Returns the value of attribute basic_auth_username.
3 4 5 |
# File 'lib/warming_drawer/configuration.rb', line 3 def basic_auth_username @basic_auth_username end |
#preheat_url ⇒ Object
Returns the value of attribute preheat_url.
3 4 5 |
# File 'lib/warming_drawer/configuration.rb', line 3 def preheat_url @preheat_url end |
#queue_name ⇒ Object
Returns the value of attribute queue_name.
3 4 5 |
# File 'lib/warming_drawer/configuration.rb', line 3 def queue_name @queue_name end |
#queue_system ⇒ Object
Returns the value of attribute queue_system.
3 4 5 |
# File 'lib/warming_drawer/configuration.rb', line 3 def queue_system @queue_system end |
#retry ⇒ Object
Returns the value of attribute retry.
3 4 5 |
# File 'lib/warming_drawer/configuration.rb', line 3 def retry @retry end |