Class: Onebox::Engine::GithubGistOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::GithubGistOnebox
show all
- Includes:
- Onebox::Engine
- Defined in:
- lib/onebox/engine/github_gist_onebox.rb
Instance Attribute Summary
#cache, #timeout
Instance Method Summary
collapse
engines, included, #initialize, #placeholder_html
Instance Method Details
#to_html ⇒ Object
19
20
21
|
# File 'lib/onebox/engine/github_gist_onebox.rb', line 19
def to_html
"<script src=\"//gist.github.com/#{match[:sha]}.js\"></script>"
end
|
#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
|