Class: Sh::Album

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/sh_database.rb

Constant Summary collapse

UNKNOWN =
1
NON_ALBUM =
2

Instance Method Summary collapse

Instance Method Details

#special_case?Boolean

Returns:

  • (Boolean)


139
140
141
# File 'lib/sh_database.rb', line 139

def special_case?
  return [UNKNOWN, NON_ALBUM].include?(id)
end

#to_sObject



143
144
145
# File 'lib/sh_database.rb', line 143

def to_s
  return title
end