Class: Beaneater::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.


9
10
11
12
13
14
15
# File 'lib/beaneater/configuration.rb', line 9

def initialize
  @default_put_delay   = 0
  @default_put_pri     = 65536
  @default_put_ttr     = 120
  @job_parser          = lambda { |body| body }
  @beanstalkd_url      = nil
end

Instance Attribute Details

#beanstalkd_urlObject

default beanstalkd url


7
8
9
# File 'lib/beaneater/configuration.rb', line 7

def beanstalkd_url
  @beanstalkd_url
end

#default_put_delayObject

default delay value to put a job


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

def default_put_delay
  @default_put_delay
end

#default_put_priObject

default priority value to put a job


4
5
6
# File 'lib/beaneater/configuration.rb', line 4

def default_put_pri
  @default_put_pri
end

#default_put_ttrObject

default ttr value to put a job


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

def default_put_ttr
  @default_put_ttr
end

#job_parserObject

default job_parser to parse job body


6
7
8
# File 'lib/beaneater/configuration.rb', line 6

def job_parser
  @job_parser
end