Class: OpenGraphReader::Og::Image

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

Overview

Instance Attribute Summary collapse

Attributes included from OpenGraphReader::Object

#children, #content, #properties

Instance Method Summary collapse

Methods included from OpenGraphReader::Object

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

Instance Attribute Details

#heightInteger?

Returns:

  • (Integer, nil)


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

integer :height

#secure_urlString?

Returns:

  • (String, nil)


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

url :secure_url

#typeString?

Returns:

  • (String, nil)


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

string :type

#widthInteger?

Returns:

  • (Integer, nil)


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

integer :width

Instance Method Details

#urlString?

Returns:

  • (String, nil)


78
79
80
# File 'lib/open_graph_reader/definitions.rb', line 78

def url
  secure_url || properties[:url] || content
end