Class: Onebox::JsonLd

Inherits:
Normalizer show all
Defined in:
lib/onebox/json_ld.rb

Constant Summary collapse

MOVIE_JSON_LD_TYPE =

Full schema.org hierarchy can be found here: schema.org/docs/full.html

"Movie"
SUPPORTED_TYPES =
[MOVIE_JSON_LD_TYPE]

Instance Attribute Summary

Attributes inherited from Normalizer

#data

Instance Method Summary collapse

Methods inherited from Normalizer

#get, #method_missing

Constructor Details

#initialize(doc) ⇒ JsonLd

Returns a new instance of JsonLd.



9
10
11
# File 'lib/onebox/json_ld.rb', line 9

def initialize(doc)
  @data = extract(doc)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Onebox::Normalizer