Class: Unlearn::RepoDeleter
- Inherits:
-
Object
- Object
- Unlearn::RepoDeleter
- Defined in:
- lib/unlearn/repo_deleter.rb
Instance Attribute Summary collapse
-
#octokit ⇒ Object
readonly
Returns the value of attribute octokit.
-
#repos ⇒ Object
readonly
Returns the value of attribute repos.
Instance Method Summary collapse
-
#initialize(repos) ⇒ RepoDeleter
constructor
A new instance of RepoDeleter.
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 login_to_octokit @octokit = Octokit::Client.new delete_repos end |
Instance Attribute Details
#octokit ⇒ Object (readonly)
Returns the value of attribute octokit.
5 6 7 |
# File 'lib/unlearn/repo_deleter.rb', line 5 def octokit @octokit end |
#repos ⇒ Object (readonly)
Returns the value of attribute repos.
5 6 7 |
# File 'lib/unlearn/repo_deleter.rb', line 5 def repos @repos end |