lib/gemerald_beanstalk/beanstalk.rb in gemerald_beanstalk-0.0.1 vs lib/gemerald_beanstalk/beanstalk.rb in gemerald_beanstalk-0.1.0

- old
+ new

@@ -2,28 +2,14 @@ require 'socket' require 'gemerald_beanstalk/beanstalk_helper' class GemeraldBeanstalk::Beanstalk - # contains functionality supporting core commands include GemeraldBeanstalk::BeanstalkHelper - # Colon-separated host and port of the Server the Beanstalk instance is - # running on. - attr_reader :address + attr_reader :address, :max_job_size - # The maximum size in bytes that a job can be. Jobs exceeding this threshold - # will result in JOB_TOO_BIG responses. - attr_reader :max_job_size - - # Initializes a new Beanstalk instance with the given +address+ and - # +maximum_job_size+. +address+ is a string identifying the host and port - # that the Beanstalk instance is running on. +maximum_job_size+ is the - # maximum size in bytes that a job can be. Jobs exceeding this threshold will - # result in JOB_TOO_BIG responses. - # - # beanstalk = GemeraldBeanstalk::Beanstalk.new('localhost:11300') def initialize(address, maximum_job_size = 2**16) @max_job_size = maximum_job_size @address = address @connections = ThreadSafe::Array.new @delayed = ThreadSafe::Array.new