Class: OpenGraphReader::Og
- Inherits:
-
Object
- Object
- OpenGraphReader::Og
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
30
|
# File 'lib/open_graph_reader/definitions.rb', line 30
url :audio
|
#description ⇒ String?
34
|
# File 'lib/open_graph_reader/definitions.rb', line 34
string :description
|
#determiner ⇒ String
38
|
# File 'lib/open_graph_reader/definitions.rb', line 38
enum :determiner, ["", "a", "an", "the", "auto"], default: ""
|
22
|
# File 'lib/open_graph_reader/definitions.rb', line 22
url :image, required: true, collection: true
|
#images ⇒ Array<Image>
22
|
# File 'lib/open_graph_reader/definitions.rb', line 22
url :image, required: true, collection: true
|
42
|
# File 'lib/open_graph_reader/definitions.rb', line 42
string :locale
|
#site_name ⇒ String?
46
|
# File 'lib/open_graph_reader/definitions.rb', line 46
string :site_name
|
#title ⇒ String
16
|
# File 'lib/open_graph_reader/definitions.rb', line 16
string :title, required: true
|
#type ⇒ String
12
|
# File 'lib/open_graph_reader/definitions.rb', line 12
string :type, required: true, downcase: true, default: "website"
|
#url ⇒ String?
26
|
# File 'lib/open_graph_reader/definitions.rb', line 26
url :url, required: true
|
50
|
# File 'lib/open_graph_reader/definitions.rb', line 50
url :video
|