Class: Octomine::Dumper
- Inherits:
-
Object
- Object
- Octomine::Dumper
- Defined in:
- lib/octomine/dumper.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#issues ⇒ Object
Returns the value of attribute issues.
Instance Method Summary collapse
- #comments ⇒ Object
-
#initialize(login, password, repo) ⇒ Dumper
constructor
A new instance of Dumper.
- #issue_comments(number) ⇒ Object
- #users ⇒ Object
Constructor Details
#initialize(login, password, repo) ⇒ Dumper
Returns a new instance of Dumper.
7 8 9 10 |
# File 'lib/octomine/dumper.rb', line 7 def initialize login, password, repo @repo = repo @client = Octokit::Client.new(:login => login, :password => password) end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
4 5 6 |
# File 'lib/octomine/dumper.rb', line 4 def client @client end |
#issues ⇒ Object
Returns the value of attribute issues.
5 6 7 |
# File 'lib/octomine/dumper.rb', line 5 def issues @issues end |
Instance Method Details
#comments ⇒ Object
34 35 36 |
# File 'lib/octomine/dumper.rb', line 34 def comments end |
#issue_comments(number) ⇒ Object
38 39 40 |
# File 'lib/octomine/dumper.rb', line 38 def issue_comments number client.issue_commits(@repo, number) end |
#users ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/octomine/dumper.rb', line 24 def users return @users if @users @users = Set.new issues.each do |issue| @users.add(issue.user.login) if issue.respond_to?(:user) && issue.user @users.add(issue.assignee.login) if issue.respond_to?(:assignee) && issue.assignee end @users end |