Module: BlacklightOembed::Solr::Document::Oembed

Defined in:
lib/blacklight_oembed/solr/document/oembed.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(document) ⇒ Object



2
3
4
# File 'lib/blacklight_oembed/solr/document/oembed.rb', line 2

def self.extended(document)
  BlacklightOembed::Solr::Document::Oembed.register_export_formats( document )
end

.register_export_formats(document) ⇒ Object



6
7
# File 'lib/blacklight_oembed/solr/document/oembed.rb', line 6

def self.register_export_formats(document)
end

Instance Method Details

#to_oembed(oembed) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/blacklight_oembed/solr/document/oembed.rb', line 9

def to_oembed(oembed)
  semantic_values = self.to_semantic_values
  ({
    :version => '1.0',
    :type =>' link',
    :title => semantic_values[:title],
    :author_name => semantic_values[:author],
  }).merge(oembed)
end