Class: Onebox::Engine::GithubPullRequestOnebox

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

Constant Summary collapse

GITHUB_COMMENT_REGEX =
/(<!--.*?-->\r\n)/

Constants included from Onebox::Engine

DEFAULT

Instance Attribute Summary

Attributes included from Onebox::Engine

#errors, #timeout, #uri

Instance Method Summary collapse

Methods included from Mixins::GithubBody

included

Methods included from LayoutSupport

#layout, max_text, #to_html

Methods included from Onebox::Engine

all_iframe_origins, engines, included, #initialize, #options, #options=, origins_to_regexes, #placeholder_html, #to_html

Instance Method Details

#urlObject



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

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