Class: OpenGraphReader::Og::Image
Overview
Instance Attribute Summary collapse
#children, #content, #properties
Instance Method Summary
collapse
#[], #[]=, #initialize, #property?, #to_s
Instance Attribute Details
#alt ⇒ String?
79
|
# File 'lib/open_graph_reader/definitions.rb', line 79
string :alt
|
#height ⇒ Integer?
75
|
# File 'lib/open_graph_reader/definitions.rb', line 75
integer :height
|
#secure_url ⇒ String?
63
|
# File 'lib/open_graph_reader/definitions.rb', line 63
url :secure_url
|
#type ⇒ String?
67
|
# File 'lib/open_graph_reader/definitions.rb', line 67
string :type
|
#width ⇒ Integer?
71
|
# File 'lib/open_graph_reader/definitions.rb', line 71
integer :width
|
Instance Method Details
#url ⇒ String?
82
83
84
|
# File 'lib/open_graph_reader/definitions.rb', line 82
def url
secure_url || properties["url"] || content
end
|