Class: Onebox::Engine::GithubPullRequestOnebox

Inherits:
Object
  • Object
show all
Includes:
Onebox::Engine, JSON, LayoutSupport
Defined in:
lib/onebox/engine/github_pullrequest_onebox.rb

Instance Attribute Summary

Attributes included from Onebox::Engine

#cache, #timeout

Instance Method Summary collapse

Methods included from LayoutSupport

#layout, max_text, #to_html

Methods included from Onebox::Engine

engines, included, #initialize, #placeholder_html, #to_html

Instance Method Details

#urlObject



17
18
19
# File 'lib/onebox/engine/github_pullrequest_onebox.rb', line 17

def url
  "https://api.github.com/repos/#{match[:owner]}/#{match[:repository]}/pulls/#{match[:number]}"
end