module Burglar

This module provides a unified interface for pulling accountig transactions

Set the version (needed for Mercenary -v)

Constants

DEFAULT_CONFIG_FILE

Default config file

VERSION

Public Class Methods

extra_dep(name, dep) click to toggle source
# File lib/burglar.rb, line 23
def extra_dep(name, dep)
  require dep
rescue LoadError
  raise("The #{name} module requires the #{dep} gem")
end
helpers() click to toggle source
# File lib/burglar.rb, line 19
def helpers
  @helpers ||= LogCabin.new(load_path: load_path(:helpers))
end
modules() click to toggle source
# File lib/burglar.rb, line 15
def modules
  @modules ||= LogCabin.new(load_path: load_path(:modules))
end
new(*args) click to toggle source

Insert a helper .new() method for creating a new Heist object

# File lib/burglar.rb, line 11
def new(*args)
  self::Heist.new(*args)
end

Private Class Methods

gem_dir() click to toggle source
# File lib/burglar.rb, line 31
def gem_dir
  Gem::Specification.find_by_name('burglar').gem_dir
end
load_path(type) click to toggle source
# File lib/burglar.rb, line 35
def load_path(type)
  File.join(gem_dir, 'lib', 'burglar', type.to_s)
end