Class: Octomine::Dumper

Inherits:
Object
  • Object
show all
Defined in:
lib/octomine/dumper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 , password, repo
  @repo = repo
  @client = Octokit::Client.new(:login => , :password => password)
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



4
5
6
# File 'lib/octomine/dumper.rb', line 4

def client
  @client
end

#issuesObject

Returns the value of attribute issues.



5
6
7
# File 'lib/octomine/dumper.rb', line 5

def issues
  @issues
end

Instance Method Details

#commentsObject



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

#usersObject



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.) if issue.respond_to?(:user) && issue.user
    @users.add(issue.assignee.) if issue.respond_to?(:assignee) &&  issue.assignee
  end
  @users
end