class Beanstalk::Job

Overview

This class represents a job within Beanstalk.

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Constructor.


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.


Instance Method Detail

def append(data : Array(UInt8)) #

This method writes data into the job.


def append(data : Slice(UInt8)) #

This method writes data into the job.


def append(text : String) #

Appends the content of a String to the Job data.


def bytes #

Fetches a slice of the data bytes within the Job.


def id : Int64? #

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


def id=(id) #

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


def size #

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


def to_s #

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