class Beanstalk::Job

Overview

This class represents a job within Beanstalk.

Defined in:

beanstalk/job.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Constructor.


[View source]
def self.new(*entries) #

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.


[View source]

Instance Method Detail

def append(data : Array(UInt8)) #

This method writes data into the job.


[View source]
def append(data : Slice(UInt8)) #

This method writes data into the job.


[View source]
def append(text : String) #

Appends the content of a String to the Job data.


[View source]
def bytes #

Fetches a slice of the data bytes within the Job.


[View source]
def id : Int64? #

Property for the job identifier. This will only be non-nil for jobs that have actually been inserted into Beanstalk.


[View source]
def id=(id : Int64 | Nil) #

Property for the job identifier. This will only be non-nil for jobs that have actually been inserted into Beanstalk.


[View source]
def size #

Fetches the size, in bytes, of the data currently held within the Job.


[View source]
def to_s #

Interprets the current data contents of a job as a string which is returned from the method call.


[View source]