class OpenGraphReader::Base
You get an instance of this class as result of your quest to obtain an OpenGraph object. It simply contains and returns the root objects, most commonly og
.
Attributes
Return the stored root objects as a hash.
@api private @return [String => Object]
Return the stored root objects as a hash.
@api private @return [String => Object]
If available, contains the source location of the document the available objects were parsed from.
@return [String, nil]
Public Class Methods
Source
# File lib/open_graph_reader/base.rb, line 50 def initialize @bases = {} end
@api private
Public Instance Methods
Source
# File lib/open_graph_reader/base.rb, line 61 def method_missing(method, ...) name = method.to_s if respond_to_missing? name @bases[name] else super end end
Makes the found root objects available. @return [Object]
Calls superclass method
Source
# File lib/open_graph_reader/base.rb, line 55 def respond_to_missing?(method, _include_private = false) @bases.has_key? method.to_s end
@private