Class: Onebox::Engine::GithubGistOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::GithubGistOnebox
show all
- Includes:
- Onebox::Engine
- Defined in:
- lib/onebox/engine/github_gist_onebox.rb
Constant Summary
DEFUALT
Instance Attribute Summary
#cache, #timeout
Instance Method Summary
collapse
engines, included, #initialize, #options, #options=, #placeholder_html
Instance Method Details
#to_html ⇒ Object
14
15
16
|
# File 'lib/onebox/engine/github_gist_onebox.rb', line 14
def to_html
"<script src=\"//gist.github.com/#{match[:sha]}.js\"></script>"
end
|
#url ⇒ Object
10
11
12
|
# File 'lib/onebox/engine/github_gist_onebox.rb', line 10
def url
"https://api.github.com/gists/#{match[:sha]}"
end
|