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



106
107
108
# File 'lib/jotify/media.rb', line 106

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

#to_hObject



110
111
112
# File 'lib/jotify/media.rb', line 110

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