Class: OpenGraphReader::Music
- Inherits:
-
Object
- Object
- OpenGraphReader::Music
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
TODO:
validate that target vertical is music.album/music.song ?
304
|
# File 'lib/open_graph_reader/definitions.rb', line 304
url :album, to: Music, verticals: %w(song), collection: true
|
#albums ⇒ Array<Music>
304
|
# File 'lib/open_graph_reader/definitions.rb', line 304
url :album, to: Music, verticals: %w(song), collection: true
|
330
|
# File 'lib/open_graph_reader/definitions.rb', line 330
url :creator, to: Profile, verticals: %w(playlist radio_station)
|
#disc ⇒ Integer?
308
|
# File 'lib/open_graph_reader/definitions.rb', line 308
integer :disc, verticals: %w(song album playlist)
|
#duration ⇒ Integer?
297
|
# File 'lib/open_graph_reader/definitions.rb', line 297
integer :duration, verticals: %w(song)
|
318
|
# File 'lib/open_graph_reader/definitions.rb', line 318
url :musician, to: Profile, verticals: %w(song album), collection: true
|
#musicians ⇒ Array<Profile>
318
|
# File 'lib/open_graph_reader/definitions.rb', line 318
url :musician, to: Profile, verticals: %w(song album), collection: true
|
#release_date ⇒ DateTime?
326
|
# File 'lib/open_graph_reader/definitions.rb', line 326
datetime :release_date, verticals: %w(album)
|
322
|
# File 'lib/open_graph_reader/definitions.rb', line 322
url :song, to: Music, verticals: %w(album playlist)
|
#track ⇒ Integer?
312
|
# File 'lib/open_graph_reader/definitions.rb', line 312
integer :track, verticals: %w(song album playlist)
|