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(={}) path = "/timeline.json" get(path, , 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=login, ={}) if token path = "/#{username}.private.json" [:token] = token else path = "/#{username}.json" end get(path, , 2, false) end |