module Dripper::ClassMethods

Public Instance Methods

after(offset, &block) click to toggle source
# File lib/dripper.rb, line 62
def after(offset, &block)
  after_blocks << { offset: offset, block: block }
end
after_blocks() click to toggle source
# File lib/dripper.rb, line 58
def after_blocks
  @after_blocks ||= []
end
fetch_instance(options={}) click to toggle source
# File lib/dripper.rb, line 78
def fetch_instance(options={})
  # nothing here
end
perform(options={}) click to toggle source
# File lib/dripper.rb, line 71
def perform(options={})
  position = options.delete(:position)
  if found = after_blocks[position]
    found[:block].call(fetch_instance(options))
  end
end
send_at(offset_array, options={}) click to toggle source
# File lib/dripper.rb, line 66
def send_at(offset_array, options={})
  @send_at_offset = offset_array
  @send_at_options = { :weekends => true }.merge(options)
end
send_at_offset() click to toggle source
# File lib/dripper.rb, line 55
def send_at_offset ; @send_at_offset ; end
send_at_options() click to toggle source
# File lib/dripper.rb, line 56
def send_at_options ; @send_at_options || { :weekends => true } ; end