class OpenGraph::Object
- OpenGraph::Object
- Hash(String, String)
- Reference
- Object
Defined in:
opengraph/object.crConstant Summary
-
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 Method Summary
- #activity
- #activity?
- #actor
- #actor?
- #album
- #album?
- #athlete
- #athlete?
- #author
- #author?
- #band
- #band?
- #bar
- #bar?
- #blog
- #blog?
- #book
- #book?
- #business
- #business?
- #cafe
- #cafe?
- #cause
- #cause?
- #city
- #city?
- #company
- #company?
- #country
- #country?
- #director
- #director?
- #drink
- #drink?
- #food
- #food?
- #game
- #game?
- #government
- #government?
- #group
- #group?
- #hotel
- #hotel?
- #landmark
- #landmark?
- #movie
- #movie?
- #musician
- #musician?
- #non_profit
- #non_profit?
- #organization
- #organization?
- #person
- #person?
- #place
- #place?
- #politician
- #politician?
-
#product
Multiplies all the elements in the collection together.
- #product?
- #public_figure
- #public_figure?
- #restaurant
- #restaurant?
- #schema
- #school
- #school?
- #song
- #song?
- #sport
- #sport?
- #sports_league
- #sports_league?
- #sports_team
- #sports_team?
- #state_province
- #state_province?
- #tv_show
- #tv_show?
- #type
- #university
- #university?
- #valid?
- #website
- #website?
Constructor Detail
Instance Method Detail
def product
#
Description copied from module Enumerable({String, String})
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 sum value.
If the collection is empty, returns multiplicative_identity
.
([] of Int32).product # => 1