Class: IssuesEvents
- Inherits:
-
Object
- Object
- IssuesEvents
- Defined in:
- lib/github/issues/issues_events.rb
Instance Attribute Summary collapse
-
#github ⇒ Object
Returns the value of attribute github.
Instance Method Summary collapse
- #getEvent(repo, id, user = nil) ⇒ Object
-
#initialize(github) ⇒ IssuesEvents
constructor
A new instance of IssuesEvents.
- #listIssueEvents(repo, issue_id, user = nil) ⇒ Object
- #listRepoIssueEvents(repo, user = nil) ⇒ Object
Constructor Details
#initialize(github) ⇒ IssuesEvents
Returns a new instance of IssuesEvents.
4 5 6 |
# File 'lib/github/issues/issues_events.rb', line 4 def initialize(github) @github = github end |
Instance Attribute Details
#github ⇒ Object
Returns the value of attribute github.
2 3 4 |
# File 'lib/github/issues/issues_events.rb', line 2 def github @github end |
Instance Method Details
#getEvent(repo, id, user = nil) ⇒ Object
18 19 20 21 |
# File 'lib/github/issues/issues_events.rb', line 18 def getEvent(repo, id, user=nil) url = 'repos/%s/%s/issues/events/%s' % [user, repo, id] @github.get(url) end |
#listIssueEvents(repo, issue_id, user = nil) ⇒ Object
8 9 10 11 |
# File 'lib/github/issues/issues_events.rb', line 8 def listIssueEvents(repo, issue_id, user=nil) url = 'repos/%s/%s/issues/%s/events' % [user, repo, issue_id] @github.get(url) end |
#listRepoIssueEvents(repo, user = nil) ⇒ Object
13 14 15 16 |
# File 'lib/github/issues/issues_events.rb', line 13 def listRepoIssueEvents(repo, user=nil) url = 'repos/%s/%s/issues/events' % [user, repo] @github.get(url) end |