Module: Onebox::LayoutSupport
- Included in:
- Engine::AmazonOnebox, Engine::DoubanOnebox, Engine::GithubBlobOnebox, Engine::GithubCommitOnebox, Engine::GithubGistOnebox, Engine::GithubIssueOnebox, Engine::GithubPullRequestOnebox, Engine::GooglePlayAppOnebox, Engine::PubmedOnebox, Engine::StackExchangeOnebox, Engine::TwitterStatusOnebox, Engine::WhitelistedGenericOnebox, Engine::WikipediaOnebox
- Defined in:
- lib/onebox/layout_support.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.max_text ⇒ Object
4 5 6 |
# File 'lib/onebox/layout_support.rb', line 4 def self.max_text 500 end |
Instance Method Details
#layout ⇒ Object
8 9 10 |
# File 'lib/onebox/layout_support.rb', line 8 def layout @layout ||= Layout.new(self.class.onebox_name, record, @cache) end |
#to_html ⇒ Object
12 13 14 |
# File 'lib/onebox/layout_support.rb', line 12 def to_html layout.to_html end |