Class: Onebox::Engine::GithubRepoOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::GithubRepoOnebox
- Includes:
- Onebox::Engine, JSON, LayoutSupport, Mixins::GithubAuthHeader
- Defined in:
- lib/onebox/engine/github_repo_onebox.rb
Constant Summary collapse
- GITHUB_COMMENT_REGEX =
/(<!--.*?-->\r\n)/m
Instance Attribute Summary
Attributes included from Onebox::Engine
#errors, #options, #timeout, #uri
Instance Method Summary collapse
Methods included from Mixins::GithubAuthHeader
Methods included from LayoutSupport
Methods included from Onebox::Engine
all_iframe_origins, engines, included, #initialize, origins_to_regexes, #placeholder_html, #to_html
Instance Method Details
#url ⇒ Object
19 20 21 |
# File 'lib/onebox/engine/github_repo_onebox.rb', line 19 def url "https://api.github.com/repos/#{match[:org]}/#{match[:repository]}" end |