Class: CultomePlayer::Objects::Album

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/cultome_player/objects/album.rb

Overview

The ActiveRecord model for Album objects.

Instance Method Summary collapse

Instance Method Details

#to_sObject



10
11
12
13
14
15
16
17
18
# File 'lib/cultome_player/objects/album.rb', line 10

def to_s
  str = c4(":::: Album: ")
  str += c13(self.name)
  str += c4(" \\ Artist: ")
  unless self.artists.nil? || self.artists.empty?
    str += c11(self.artists.uniq.collect{|a| a.name}.join(', '))
  end
  str += c4(" ::::")
end