Module: Freshbookstimestats
- Defined in:
- lib/freshbookstimestats.rb,
lib/freshbookstimestats/version.rb
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
Class Method Details
.load(dir = nil) ⇒ Object
145 146 147 148 |
# File 'lib/freshbookstimestats.rb', line 145 def self.load(dir = nil) Dotenv.load(*Array(dir)) FreshBooks::Base.establish_connection(ENV['FRESHBOOKS_DOMAIN'], ENV['FRESHBOOKS_AUTH_TOKEN']) end |
.run ⇒ Object
150 151 152 153 |
# File 'lib/freshbookstimestats.rb', line 150 def self.run project = Projects.pick_project TimeEntries.render_project project if project end |