Class: Bl::Recent
Instance Method Summary collapse
-
#initialize ⇒ Recent
constructor
A new instance of Recent.
- #issues(count = nil) ⇒ Object
- #wikis(count = nil) ⇒ Object
Methods included from Requestable
Constructor Details
Instance Method Details
#issues(count = nil) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/bl/recent.rb', line 11 def issues(count = nil) client.get( 'users/myself/recentlyViewedIssues', count: count ).body.each do |i| puts [i.issue.issueKey, i.issue.summary].join("\t") end end |
#wikis(count = nil) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/bl/recent.rb', line 21 def wikis(count = nil) client.get( 'users/myself/recentlyViewedWikis', count: count ).body.each do |w| puts [w.page.id, w.page.name].join("\t") end end |