lib/onebox/engine.rb in onebox-2.1.5 vs lib/onebox/engine.rb in onebox-2.1.6

- old
+ new

@@ -28,10 +28,11 @@ end end attr_reader :url, :uri attr_reader :timeout + attr :errors DEFAULT = {} def options @options end @@ -42,9 +43,10 @@ @options.merge!(opt) @options end def initialize(link, timeout = nil) + @errors = {} @options = DEFAULT class_name = self.class.name.split("::").last.to_s # Set the engine options extracted from global options. self.options = Onebox.options[class_name] || {}