Class: Java::DeFelixbrunsJotifyMedia::Album

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/jotify/media.rb

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object



88
89
90
# File 'lib/jotify/media.rb', line 88

def each(&block) 
  tracks.each(&block) 
end

#to_hObject



92
93
94
# File 'lib/jotify/media.rb', line 92

def to_h
  super.merge(:name=>name, :artist=>artist ? artist.name : nil, :year=>year, :type=>type)
end