class Beanstalk::Server
- Beanstalk::Server
- Reference
- Object
Overview
This class represents a single server instance running the Beanstalk queue.
Defined in:
beanstalk/server.crConstant Summary
-
DEFAULT_PORT =
11300
-
Constant for the default Beanstalk port number.
Constructors
-
.new(host : String, port : Int32 = DEFAULT_PORT)
Constructor.
Class Method Summary
-
.for(details : String)
Class method that converts a String in the form "host:port" into a Server instance.
Instance Method Summary
-
#host : String
Fetches the host name/IP address for the server.
-
#port : Int32
Fetches the port number for the server.
-
#to_s
Generates a string for a Server.
Constructor Detail
Class Method Detail
def self.for(details : String)
#
Class method that converts a String in the form "host:port" into a Server instance. The port part of the string is optional.