Class: HuginnGithubNotificationsAgent::Subject

Inherits:
Object
  • Object
show all
Defined in:
lib/huginn_github_notifications_agent/subject.rb

Instance Method Summary collapse

Instance Method Details

#url_webObject



14
15
16
17
# File 'lib/huginn_github_notifications_agent/subject.rb', line 14

def url_web
  matches = url.scan(%r{/(?<type>pull|issues)s?/(?<id>\d+)$})
  (["https://github.com/#{repo_name}"] << matches.flatten).join('/')
end