class OpenGraph::Object

Defined in:

opengraph/object.cr

Constant 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

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def activity #

[View source]
def activity? #

[View source]
def actor #

[View source]
def actor? #

[View source]
def album #

[View source]
def album? #

[View source]
def athlete #

[View source]
def athlete? #

[View source]
def author #

[View source]
def author? #

[View source]
def band #

[View source]
def band? #

[View source]
def bar #

[View source]
def bar? #

[View source]
def blog #

[View source]
def blog? #

[View source]
def book #

[View source]
def book? #

[View source]
def business #

[View source]
def business? #

[View source]
def cafe #

[View source]
def cafe? #

[View source]
def cause #

[View source]
def cause? #

[View source]
def city #

[View source]
def city? #

[View source]
def company #

[View source]
def company? #

[View source]
def country #

[View source]
def country? #

[View source]
def director #

[View source]
def director? #

[View source]
def drink #

[View source]
def drink? #

[View source]
def food #

[View source]
def food? #

[View source]
def game #

[View source]
def game? #

[View source]
def government #

[View source]
def government? #

[View source]
def group #

[View source]
def group? #

[View source]
def hotel #

[View source]
def hotel? #

[View source]
def landmark #

[View source]
def landmark? #

[View source]
def movie #

[View source]
def movie? #

[View source]
def musician #

[View source]
def musician? #

[View source]
def non_profit #

[View source]
def non_profit? #

[View source]
def organization #

[View source]
def organization? #

[View source]
def person #

[View source]
def person? #

[View source]
def place #

[View source]
def place? #

[View source]
def politician #

[View source]
def politician? #

[View source]
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

[View source]
def product? #

[View source]
def public_figure #

[View source]
def public_figure? #

[View source]
def restaurant #

[View source]
def restaurant? #

[View source]
def schema #

[View source]
def school #

[View source]
def school? #

[View source]
def song #

[View source]
def song? #

[View source]
def sport #

[View source]
def sport? #

[View source]
def sports_league #

[View source]
def sports_league? #

[View source]
def sports_team #

[View source]
def sports_team? #

[View source]
def state_province #

[View source]
def state_province? #

[View source]
def tv_show #

[View source]
def tv_show? #

[View source]
def type #

[View source]
def university #

[View source]
def university? #

[View source]
def valid? #

[View source]
def website #

[View source]
def website? #

[View source]