OpenGraph::Object
Inherits Hash / Iterable / Enumerable / Reference / Object
Constants
MANDATORY_ATTRIBUTES = ["title", "type", "image", "url"] of ::String
TYPES = {"activity" => ["activity", "sport"] of ::String, "business" => ["bar", "company", "cafe", "hotel", "restaurant"] of ::String, "group" => ["cause", "sports_league", "sports_team"] of ::String, "organization" => ["band", "government", "non_profit", "school", "university"] of ::String, "person" => ["actor", "athlete", "author", "director", "musician", "politician", "public_figure"] of ::String, "place" => ["city", "country", "landmark", "state_province"] of ::String, "product" => ["album", "book", "drink", "food", "game", "movie", "product", "song", "tv_show"] of ::String, "website" => ["blog", "website"] of ::String}
Constructors
new
SourceInstance methods
activity
Sourceactivity?
Sourceactor
Sourceactor?
Sourcealbum
Sourcealbum?
Sourceathlete
Sourceathlete?
Sourceauthor
Sourceauthor?
Sourceband
Sourceband?
Sourcebar
Sourcebar?
Sourceblog
Sourceblog?
Sourcebook
Sourcebook?
Sourcebusiness
Sourcebusiness?
Sourcecafe
Sourcecafe?
Sourcecause
Sourcecause?
Sourcecity
Sourcecity?
Sourcecompany
Sourcecompany?
Sourcecountry
Sourcecountry?
Sourcedirector
Sourcedirector?
Sourcedrink
Sourcedrink?
Sourcefood
Sourcefood?
Sourcegame
Sourcegame?
Sourcegovernment
Sourcegovernment?
Sourcegroup
Sourcegroup?
Sourcehotel
Sourcehotel?
Sourcelandmark
Sourcelandmark?
Sourcemovie
Sourcemovie?
Sourcemusician
Sourcemusician?
Sourcenon_profit
Sourcenon_profit?
Sourceorganization
Sourceorganization?
Sourceperson
Sourceperson?
Sourceplace
Sourceplace?
Sourcepolitician
Sourcepolitician?
Sourceproduct
Multiplies all the elements in the collection together.
Expects all element types to respond to #* method.
[1, 2, 3, 4, 5, 6].product # => 720
This method calls .multiplicative_identity on the element type to determine the
type of the product value.
If the collection is empty, returns multiplicative_identity.
([] of Int32).product # => 1
product?
Sourcepublic_figure
Sourcepublic_figure?
Sourcerestaurant
Sourcerestaurant?
Sourceschema
Sourceschool
Sourceschool?
Sourcesong
Sourcesong?
Sourcesport
Sourcesport?
Sourcesports_league
Sourcesports_league?
Sourcesports_team
Sourcesports_team?
Sourcestate_province
Sourcestate_province?
Sourcetv_show
Sourcetv_show?
Sourcetype
Sourceuniversity
Sourceuniversity?
Sourcevalid?
Sourcewebsite
Sourcewebsite?
Source