Module: Octokit::Client::Timelines

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

Instance Method Summary collapse

Instance Method Details

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



5
6
7
8
9
10
11
12
# File 'lib/octokit/client/timelines.rb', line 5

def public_timeline(username=, options={})
  if username.nil?
    path = "timeline.json"
  else
    path = "#{username}.json"
  end
  get(path, options, false, false)
end

#timeline(options = {}) ⇒ Object



14
15
16
# File 'lib/octokit/client/timelines.rb', line 14

def timeline(options={})
  get("#{}.private.json", options, false, false)
end