Class: HustleAndFlow::IssueTrackers::Github::Tracker
- Inherits:
-
Object
- Object
- HustleAndFlow::IssueTrackers::Github::Tracker
- Defined in:
- lib/hustle_and_flow/issue_trackers/github/tracker.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#repo ⇒ Object
Returns the value of attribute repo.
Instance Method Summary collapse
-
#initialize(repo:) ⇒ Tracker
constructor
A new instance of Tracker.
- #repo_name ⇒ Object
Constructor Details
#initialize(repo:) ⇒ Tracker
Returns a new instance of Tracker.
10 11 12 13 14 15 |
# File 'lib/hustle_and_flow/issue_trackers/github/tracker.rb', line 10 def initialize(repo:) Octokit.auto_paginate = true self.client = Octokit::Client.new(netrc: true) self.repo = repo end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
7 8 9 |
# File 'lib/hustle_and_flow/issue_trackers/github/tracker.rb', line 7 def client @client end |
#repo ⇒ Object
Returns the value of attribute repo.
7 8 9 |
# File 'lib/hustle_and_flow/issue_trackers/github/tracker.rb', line 7 def repo @repo end |
Instance Method Details
#repo_name ⇒ Object
17 18 19 |
# File 'lib/hustle_and_flow/issue_trackers/github/tracker.rb', line 17 def repo_name repo.base_name end |