Class: OpenGraphReader::Music

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

#albumMusic?

TODO:

validate that target vertical is music.album/music.song ?

Returns:



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

url :album, to: Music,      verticals: %w(song),      collection: true

#albumsArray<Music> (readonly)

Returns:



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

url :album, to: Music,      verticals: %w(song),      collection: true

#creatorProfile?

Returns:



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

url :creator, to: Profile,  verticals: %w(playlist radio_station)

#discInteger?

Returns:

  • (Integer, nil)


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

integer :disc,              verticals: %w(song album playlist)

#durationInteger?

Returns:

  • (Integer, nil)


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

integer :duration, verticals: %w(song)

#musicianProfile?

Returns:



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

url :musician, to: Profile, verticals: %w(song album), collection: true

#musiciansArray<Profile> (readonly)

Returns:



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

url :musician, to: Profile, verticals: %w(song album), collection: true

#release_dateDateTime?

Returns:

  • (DateTime, nil)


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

datetime :release_date,     verticals: %w(album)

#songMusic?

Returns:



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

url :song, to: Music,       verticals: %w(album playlist)

#trackInteger?

Returns:

  • (Integer, nil)


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

integer :track,             verticals: %w(song album playlist)