Class: OpenGraphReader::Og

Inherits:
Object
  • Object
show all
Includes:
Object
Defined in:
lib/open_graph_reader/definitions.rb

Overview

Defined Under Namespace

Classes: Audio, Image, Locale, Video

Instance Attribute Summary collapse

Attributes included from Object

#children, #content, #properties

Method Summary

Methods included from Object

#[], #[]=, #initialize, #property?, #to_s

Instance Attribute Details

#audioAudio?

Returns:



30
# File 'lib/open_graph_reader/definitions.rb', line 30

url :audio

#descriptionString?

Returns:

  • (String, nil)


34
# File 'lib/open_graph_reader/definitions.rb', line 34

string :description

#determinerString

Returns:

  • (String)


38
# File 'lib/open_graph_reader/definitions.rb', line 38

enum :determiner, ["", "a", "an", "the", "auto"], default: ""

#imageImage

Returns:



22
# File 'lib/open_graph_reader/definitions.rb', line 22

url :image, required: true, collection: true

#imagesArray<Image> (readonly)

Returns:



22
# File 'lib/open_graph_reader/definitions.rb', line 22

url :image, required: true, collection: true

#localeLocale?

Returns:



42
# File 'lib/open_graph_reader/definitions.rb', line 42

string :locale

#site_nameString?

Returns:

  • (String, nil)


46
# File 'lib/open_graph_reader/definitions.rb', line 46

string :site_name

#titleString

Returns:

  • (String)


16
# File 'lib/open_graph_reader/definitions.rb', line 16

string :title, required: true

#typeString

Returns:

  • (String)


12
# File 'lib/open_graph_reader/definitions.rb', line 12

string :type,  required: true, downcase: true, default: "website"

#urlString?

Returns:

  • (String, nil)


26
# File 'lib/open_graph_reader/definitions.rb', line 26

url :url, required: true

#videoVideo?

Returns:



50
# File 'lib/open_graph_reader/definitions.rb', line 50

url :video