Class: Vpr::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/vpr/url.rb

Instance Method Summary collapse

Constructor Details

#initializeUrl

Returns a new instance of Url.



6
7
8
# File 'lib/vpr/url.rb', line 6

def initialize
  @service = services[GitParser.host.to_sym]
end

Instance Method Details

#branch_urlObject



26
27
28
# File 'lib/vpr/url.rb', line 26

def branch_url
  service.branch_url
end

#branches_urlObject



22
23
24
# File 'lib/vpr/url.rb', line 22

def branches_url
  service.branches_url
end

#commit_url(commit) ⇒ Object



34
35
36
# File 'lib/vpr/url.rb', line 34

def commit_url(commit)
  service.commit_url(commit)
end

#home_urlObject



10
11
12
# File 'lib/vpr/url.rb', line 10

def home_url
  service.home_url
end

#issues_urlObject



18
19
20
# File 'lib/vpr/url.rb', line 18

def issues_url
  service.issues_url
end

#pull_url(branch = nil) ⇒ Object



30
31
32
# File 'lib/vpr/url.rb', line 30

def pull_url(branch = nil)
  service.pull_url(branch)
end

#pulls_urlObject



14
15
16
# File 'lib/vpr/url.rb', line 14

def pulls_url
  service.pulls_url
end

#search_url(commit) ⇒ Object



38
39
40
# File 'lib/vpr/url.rb', line 38

def search_url(commit)
  service.search_url(commit)
end