Class: Projects

Inherits:
Object
  • Object
show all
Defined in:
lib/freshbookstimestats.rb

Defined Under Namespace

Classes: Project

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.pick_projectObject



22
23
24
# File 'lib/freshbookstimestats.rb', line 22

def self.pick_project
  new.select_project
end

Instance Method Details

#select_projectObject



26
27
28
29
30
31
# File 'lib/freshbookstimestats.rb', line 26

def select_project
  puts project_table
  print "\nChoose a project number: "
  project = ask_project_select
  FreshBooks::Project.get project.id if project
end