class Beanstalk::Job
- Beanstalk::Job
- Reference
- Object
Overview
This class represents a job within Beanstalk.
Defined in:
beanstalk/job.crConstructors
-
.new
Constructor.
-
.new(*entries)
Constructor that takes a collection of data elements and appends them to the job.
Instance Method Summary
-
#append(data : Array(UInt8))
This method writes data into the job.
-
#append(data : Slice(UInt8))
This method writes data into the job.
-
#append(text : String)
Appends the content of a String to the Job data.
-
#bytes
Fetches a slice of the data bytes within the Job.
-
#id : Int64?
Property for the job identifier.
-
#id=(id : Int64 | Nil)
Property for the job identifier.
-
#size
Fetches the size, in bytes, of the data currently held within the Job.
-
#to_s
Interprets the current data contents of a job as a string which is returned from the method call.
Constructor Detail
Constructor that takes a collection of data elements and appends them to the job. Note that entries must be of type Array(UInt8) or String.
Instance Method Detail
Property for the job identifier. This will only be non-nil for jobs that have actually been inserted into Beanstalk.
Property for the job identifier. This will only be non-nil for jobs that have actually been inserted into Beanstalk.
Interprets the current data contents of a job as a string which is returned from the method call.