Class: OpenGraphReader::Og::Audio

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

#secure_urlString?

Returns:

  • (String, nil)


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

url :secure_url

#typeString?

Returns:

  • (String, nil)


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

string :type

Instance Method Details

#urlString?

Returns:

  • (String, nil)


102
103
104
# File 'lib/open_graph_reader/definitions.rb', line 102

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