Class: Unlearn::RepoDeleter

Inherits:
Object
  • Object
show all
Defined in:
lib/unlearn/repo_deleter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repos) ⇒ RepoDeleter

Returns a new instance of RepoDeleter.



7
8
9
10
11
12
13
14
15
# File 'lib/unlearn/repo_deleter.rb', line 7

def initialize(repos)
  @repos = repos

  

  @octokit = Octokit::Client.new

  delete_repos
end

Instance Attribute Details

#octokitObject (readonly)

Returns the value of attribute octokit.



5
6
7
# File 'lib/unlearn/repo_deleter.rb', line 5

def octokit
  @octokit
end

#reposObject (readonly)

Returns the value of attribute repos.



5
6
7
# File 'lib/unlearn/repo_deleter.rb', line 5

def repos
  @repos
end