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



102
103
104
# File 'lib/jotify/media.rb', line 102

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

#to_hObject



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

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