Module: Onebox::LayoutSupport
- Included in:
- Engine::AllowlistedGenericOnebox, Engine::AmazonOnebox, Engine::GithubCommitOnebox, Engine::GithubFolderOnebox, Engine::GithubGistOnebox, Engine::GithubIssueOnebox, Engine::GithubPullRequestOnebox, Engine::GoogleDocsOnebox, Engine::GoogleDriveOnebox, Engine::GooglePlayAppOnebox, Engine::InstagramOnebox, Engine::PastebinOnebox, Engine::PdfOnebox, Engine::PubmedOnebox, Engine::StackExchangeOnebox, Engine::TwitterStatusOnebox, Engine::WikimediaOnebox, Engine::WikipediaOnebox, Engine::XkcdOnebox
- Defined in:
- lib/onebox/layout_support.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
permalink .max_text ⇒ Object
[View source]
6 7 8 |
# File 'lib/onebox/layout_support.rb', line 6 def self.max_text 500 end |
Instance Method Details
permalink #layout ⇒ Object
[View source]
10 11 12 |
# File 'lib/onebox/layout_support.rb', line 10 def layout @layout ||= Layout.new(self.class.onebox_name, data) end |
permalink #to_html ⇒ Object
[View source]
14 15 16 |
# File 'lib/onebox/layout_support.rb', line 14 def to_html layout.to_html end |