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
# File 'lib/octokit/client/timelines.rb', line 4

def timeline(options={})
  path = "/timeline.json"
  get(path, options, 2, false)
end

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



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

def user_timeline(username=, options={})
  if token
    path = "/#{username}.private.json"
    options[:token] = token
  else
    path = "/#{username}.json"
  end
  get(path, options, 2, false)
end