Class: Onebox::Engine::GoogleDocsOnebox

Inherits:
Object
  • Object
show all
Includes:
Onebox::Engine, LayoutSupport
Defined in:
lib/onebox/engine/google_docs_onebox.rb

Constant Summary

Constants included from Onebox::Engine

DEFAULT

Instance Attribute Summary

Attributes included from Onebox::Engine

#cache, #timeout, #uri, #url

Class Method Summary collapse

Methods included from LayoutSupport

#layout, max_text, #to_html

Methods included from Onebox::Engine

engines, included, #initialize, #options, #options=, #placeholder_html, #to_html

Class Method Details

.short_typesObject



11
12
13
14
15
16
17
18
# File 'lib/onebox/engine/google_docs_onebox.rb', line 11

def self.short_types
  @shorttypes ||= {
    spreadsheets: :sheets,
    document: :docs,
    presentation: :slides,
    forms: :forms,
  }
end

.supported_endpointsObject



7
8
9
# File 'lib/onebox/engine/google_docs_onebox.rb', line 7

def self.supported_endpoints
  %w(spreadsheets document forms presentation)
end