class

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

Instance methods

activity
Source
activity?
Source
actor
Source
actor?
Source
album
Source
album?
Source
athlete
Source
athlete?
Source
author
Source
author?
Source
band
Source
band?
Source
bar?
Source
blog
Source
blog?
Source
book
Source
book?
Source
business
Source
business?
Source
cafe
Source
cafe?
Source
cause
Source
cause?
Source
city
Source
city?
Source
company
Source
company?
Source
country
Source
country?
Source
director
Source
director?
Source
drink
Source
drink?
Source
food
Source
food?
Source
game
Source
game?
Source
government
Source
government?
Source
group
Source
group?
Source
hotel
Source
hotel?
Source
landmark
Source
landmark?
Source
movie
Source
movie?
Source
musician
Source
musician?
Source
non_profit
Source
non_profit?
Source
organization
Source
organization?
Source
person
Source
person?
Source
place
Source
place?
Source
politician
Source
politician?
Source
product

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
Source
product?
Source
public_figure
Source
public_figure?
Source
restaurant
Source
restaurant?
Source
schema
Source
school
Source
school?
Source
song
Source
song?
Source
sport
Source
sport?
Source
sports_league
Source
sports_league?
Source
sports_team
Source
sports_team?
Source
state_province
Source
state_province?
Source
tv_show
Source
tv_show?
Source
type
Source
university
Source
university?
Source
valid?
Source
website
Source
website?
Source