Class: OpenGraphReader::Article

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

Overview

Instance Attribute Summary collapse

Attributes included from Object

#children, #content, #properties

Method Summary

Methods included from Object

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

Instance Attribute Details

#authorProfile?

TODO:

This one is a reference to another OpenGraph object. Support fetching it?

Returns:



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

url :author, collection: true, to: Profile

#authorsArray<Profile> (readonly)

Returns:



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

url :author, collection: true, to: Profile

#expiration_timeDateTime?

Returns:

  • (DateTime, nil)


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

datetime :expiration_time

#modified_timeDateTime?

Returns:

  • (DateTime, nil)


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

datetime :modified_time

#published_timeDateTime?

Returns:

  • (DateTime, nil)


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

datetime :published_time

#sectionString?

Returns:

  • (String, nil)


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

string :section

#tagString?

Returns:

  • (String, nil)


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

string :tag, collection: true

#tagsArray<String> (readonly)

Returns:

  • (Array<String>)


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

string :tag, collection: true