Method: OpenGraphReader::Builder#base
- Defined in:
- lib/open_graph_reader/builder.rb
#base ⇒ Base
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Build and return the base.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/open_graph_reader/builder.rb', line 24 def base base = Base.new type = @parser.graph.fetch("og:type", "website").downcase validate_type type @parser.graph.each do |property| build_property base, property end synthesize_required_properties base drop_empty_children base validate base base end |