Module: Cartos

Defined in:
lib/cartos.rb,
lib/cartos/cli.rb,
lib/cartos/version.rb,
lib/cartos/cashbase.rb,
lib/cartos/import/file.rb,
lib/cartos/google/sheet.rb,
lib/cartos/google/google.rb,
lib/cartos/import/cashbase.rb,
lib/cartos/generators/config.rb,
lib/cartos/google/spreadsheet.rb,
lib/cartos/spreadsheet/sheets/month.rb,
lib/cartos/spreadsheet/sheets/sheet.rb,
lib/cartos/spreadsheet/sheets/summary.rb,
lib/cartos/spreadsheet/cartos_spreadsheet.rb

Defined Under Namespace

Modules: Cashbase, Generators, Google, Import, Spreadsheet Classes: CLI

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.configObject



19
20
21
# File 'lib/cartos.rb', line 19

def self.config
  @config
end

.config=(config) ⇒ Object



15
16
17
# File 'lib/cartos.rb', line 15

def self.config=(config)
  @config = config
end

.load_from_cashbaseObject



23
24
25
26
# File 'lib/cartos.rb', line 23

def self.load_from_cashbase
  Cartos::Cashbase.importer = Cartos::Import::Cashbase.new
  Cartos::Cashbase.load
end

.load_from_file(filename) ⇒ Object



28
29
30
31
32
# File 'lib/cartos.rb', line 28

def self.load_from_file(filename)
  importer = Cartos::Import::File.new filename
  Cartos::Cashbase.importer = importer
  Cartos::Cashbase.load
end