Class: PT::Flow::Repo

Inherits:
Object
  • Object
show all
Defined in:
lib/pt-flow/repo.rb

Constant Summary collapse

CONFIG_PATH =
ENV['HUB_CONFIG'] ||  ENV['HOME'] + '/.config/hub'

Instance Method Summary collapse

Instance Method Details

#nameObject



14
15
16
# File 'lib/pt-flow/repo.rb', line 14

def name
  path.split('/').last
end

#pull_requestsObject



6
7
8
# File 'lib/pt-flow/repo.rb', line 6

def pull_requests
  client.pull_requests.all(user, name)
end

#userObject



10
11
12
# File 'lib/pt-flow/repo.rb', line 10

def user
  path.split('/').first
end