new

new(pie, *args) Class Public methods

exists?

exists?(conditions = :none) Instance Public methods Returns true if a record exists in the table that matches the id or conditions given, or false otherwise. The argument can take six forms: Integer - Finds the record with this primary key. String - Finds the record with a primary key corresponding to this string (such as '5'). Array - Finds the record that matches these find-style conditions (such as ['name LIKE ?', "%#{query}%"]). Hash - Finds the record that matches these

new

new() Class Public methods

ret_val

ret_val(val) Class Public methods

bg_eval_proc 2

bg_eval_proc(*args) Instance Public methods Also aliased as: background_eval_proc, thread_eval_proc, bg_call, background_call

new

new(*args) Class Public methods

ordering=

ordering=(ordering) Instance Public methods Set the handling of the ordering of options and arguments. A RuntimeError is raised if option processing has already started. The supplied value must be a member of GetoptLong::ORDERINGS. It alters the processing of options as follows: REQUIRE_ORDER : Options are required to occur before non-options. Processing of options ends as soon as a word is encountered that has not been preceded by an appropriate option flag. For example, if -a and

encode_credentials

encode_credentials(token, options = {}) Instance Public methods Encodes the given token and options into an Authorization header value. token - String token. options - optional Hash of the options. Returns String.

add_file

add_file(name, mode) Instance Public methods Adds file name with permissions mode, and yields an IO for writing the file to

set_symbol_element

set_symbol_element(idxs, val) Instance Public methods