Class: Onebox::Engine::GithubGistOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::GithubGistOnebox
- Includes:
- Onebox::Engine, JSON, LayoutSupport
- Defined in:
- lib/onebox/engine/github_gist_onebox.rb
Defined Under Namespace
Classes: GistFile
Constant Summary collapse
- MAX_FILES =
3
Constants included from Onebox::Engine
Instance Attribute Summary
Attributes included from Onebox::Engine
#errors, #options, #timeout, #uri
Instance Method Summary collapse
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
15 16 17 |
# File 'lib/onebox/engine/github_gist_onebox.rb', line 15 def url "https://api.github.com/gists/#{match[:sha]}" end |