Class: WarmingDrawer::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_passwordObject

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_usernameObject

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_urlObject

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_nameObject

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_systemObject

Returns the value of attribute queue_system.



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

def queue_system
  @queue_system
end

#retryObject

Returns the value of attribute retry.



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

def retry
  @retry
end