Class: TimestampAPI::Project

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

Class Method Summary collapse

Class Method Details

.allObject



3
4
5
# File 'lib/timestamp_api/project.rb', line 3

def self.all
  TimestampAPI.request(:get, "/projects")
end

.find(id) ⇒ Object



7
8
9
# File 'lib/timestamp_api/project.rb', line 7

def self.find(id)
  TimestampAPI.request(:get, "/projects/#{id}")
end