delete_all

delete_all(address, port = nil, account = nil, password = nil, isapop = false, &block) Class Public methods Starts a POP3 session and deletes all messages on the server. If a block is given, each POPMail object is yielded to it before being deleted. This method raises a POPAuthenticationError if authentication fails. Example Net::POP3.delete_all('pop.example.com', 110, 'YourAccount', 'YourPassword') do |m| file.write m.pop end

time_zone_select

time_zone_select(object, method, priority_zones = nil, options = {}, html_options = {}) Instance Public methods Returns select and option tags for the given object and method, using time_zone_options_for_select to generate the list of option tags. In addition to the :include_blank option documented above, this method also supports a :model option, which defaults to ActiveSupport::TimeZone. This may be used by users to specify a different time zone model object. (See time_zone_optio

copy

copy(set, mailbox) Instance Public methods Sends a COPY command to copy the specified message(s) to the end of the specified destination mailbox. The set parameter is a number or an array of numbers or a Range object. The number is a message sequence number.

delete_all

delete_all(dependent = nil) Instance Public methods Deletes all the records from the collection. For has_many associations, the deletion is done according to the strategy specified by the :dependent option. Returns an array with the deleted records. If no :dependent option is given, then it will follow the default strategy. The default strategy is :nullify. This sets the foreign keys to NULL. For, has_many :through, the default strategy is delete_all. class Person < ActiveRecord

parsed

parsed() Instance Public methods BOOL parsed has sub-tree been completely parsed

use

use(name=None) Instance Public methods

has_text?

has_text?() Instance Public methods Evaluates to true if this element has at least one Text child

start 2

start() Instance Public methods Opens a TCP connection and HTTP session. When this method is called with a block, it passes the Net::HTTP object to the block, and closes the TCP connection and HTTP session after the block has been executed. When called with a block, it returns the return value of the block; otherwise, it returns self.

start 2

start(helo = 'localhost', user = nil, secret = nil, authtype = nil) Instance Public methods Opens a TCP connection and starts the SMTP session. Parameters helo is the HELO domain that you'll dispatch mails from; see the discussion in the overview notes. If both of user and secret are given, SMTP authentication will be attempted using the AUTH command. authtype specifies the type of authentication to attempt; it must be one of :login, :plain, and :cram_md5. See the notes on SMTP A

url_to_audio

url_to_audio(source, options = {}) Instance Public methods Alias for: audio_url