Method: OpenGraph::Object#schema

Defined in:
lib/opengraph.rb

#schemaObject

The schema under which this particular object lies. May be any of the keys of the TYPES constant.



50
51
52
53
54
55
# File 'lib/opengraph.rb', line 50

def schema
  OpenGraph::TYPES.each_pair do |schema, types| 
    return schema if types.include?(self.type)
  end
  nil
end