wait_all_jobs_execution

wait_all_jobs_execution() Instance Public methods wait for all jobs to terminate

complete

complete(id, opt, icase = false, *pat, &block) Instance Public methods Searches list id for opt and the optional patterns for completion pat. If icase is true, the search is case insensitive. The result is returned or yielded if a block is given. If it isn't found, nil is returned.

sanitize_conditions

sanitize_conditions(condition, table_name = self.table_name) Instance Protected methods Alias for: sanitize_sql

calculate

calculate(operation, column_name, options = {}) Instance Public methods This calculates aggregate values in the given column. Methods for count, sum, average, minimum, and maximum have been added as shortcuts. There are two basic forms of output: * Single aggregate value: The single value is type cast to Fixnum for COUNT, Float for AVG, and the given column's type for everything else. * Grouped values: This returns an ordered hash of the values and groups them. It takes either

set_service_hook

set_service_hook(&handler) Instance Public methods A service-hook is called for each service request (RPC). You can use a service-hook for example to wrap existing methods and catch exceptions of them or convert values to values recognized by XMLRPC. You can disable it by passing nil as the handler parameter. The service-hook is called with a Proc object along with any parameters. An example: server.set_service_hook {|obj, *args| begin ret = obj.call(*args) # call the or

new

new(m, reqbody, resbody, uri_or_path, initheader = nil) Class Public methods

as_json

as_json(options = nil) Instance Public methods Returns a hash representing the model. Some configuration can be passed through options. The option include_root_in_json controls the top-level behavior of as_json. If true, as_json will emit a single root node named after the object's type. The default value for include_root_in_json option is false. user = User.find(1) user.as_json # => { "id" => 1, "name" => "Konata Izumi", "age" => 16, # "created_at" => "2006/08/0

get_tab

get_tab(index) Instance Public methods

inspect

inspect() Instance Public methods

|

ary | other_ary â new_ary Instance Public methods Set Union â Returns a new array by joining ary with other_ary, excluding any duplicates and preserving the order from the original array. It compares elements using their hash and eql? methods for efficiency. [ "a", "b", "c" ] | [ "c", "d", "a" ] #=> [ "a", "b", "c", "d" ] See also #uniq.