Class: HustleAndFlow::IssueTrackers::Github::Tracker

Inherits:
Object
  • Object
show all
Defined in:
lib/hustle_and_flow/issue_trackers/github/tracker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo:) ⇒ 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

#clientObject

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

#repoObject

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

#meObject



25
26
27
# File 'lib/hustle_and_flow/issue_trackers/github/tracker.rb', line 25

def me
  client.
end

#organization_nameObject



21
22
23
# File 'lib/hustle_and_flow/issue_trackers/github/tracker.rb', line 21

def organization_name
  repo.organization
end

#repo_nameObject



17
18
19
# File 'lib/hustle_and_flow/issue_trackers/github/tracker.rb', line 17

def repo_name
  repo.base_name
end