module Mancora

Constants

VERSION

Public Class Methods

run(backfill = 0) click to toggle source
# File lib/mancora.rb, line 13
def self.run(backfill = 0)
  @backfill = backfill
  puts "Backfilling " + (@backfill || 0).to_s  + " hours." if @backfill > 0
  load Rails.root.join('lib', 'mancora.rb')
end
table_name_prefix() click to toggle source
# File lib/mancora.rb, line 9
def self.table_name_prefix
  'mancora_'
end

Public Instance Methods

widget(opt, options = {}, &block) click to toggle source
# File lib/mancora.rb, line 23
def widget(opt, options = {}, &block)
  Widget.new(opt, @backfill, &block)
end
widgets(hash = {}, &block) click to toggle source
# File lib/mancora.rb, line 19
def widgets(hash = {}, &block)  
  instance_eval(&block) if block_given?
end