Class: OpenGraphReader::Og::Image
Overview
Instance Attribute Summary collapse
#children, #content, #properties
Instance Method Summary
collapse
#[], #[]=, #initialize, #property?, #to_s
Instance Attribute Details
#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?
78
79
80
|
# File 'lib/open_graph_reader/definitions.rb', line 78
def url
secure_url || properties[:url] || content
end
|