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)


148
149
150
# File 'lib/sh_database.rb', line 148

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

#to_sObject



152
153
154
# File 'lib/sh_database.rb', line 152

def to_s
  return title
end