Module: Octokit::Client::Timelines

Included in:
Octokit::Client
Defined in:
lib/octokit/client/timelines.rb

Instance Method Summary collapse

Instance Method Details

#timeline(options = {}) ⇒ Object



4
5
6
7
8
# File 'lib/octokit/client/timelines.rb', line 4

def timeline(options={})
  warn 'DEPRECATED: Please use Octokit.public_events instead.'
  path = "/timeline.json"
  get(path, options, 2, false)
end

#user_timeline(username = login, options = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/octokit/client/timelines.rb', line 10

def user_timeline(username=, options={})
  warn 'DEPRECATED: Please use Octokit.user_events instead.'
  if authenticated?
    path = "/#{username}.private.json"
  else
    path = "/#{username}.json"
  end
  get(path, options, 2, false)
end