Class: Camper::RecordingTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/camper/recording_types.rb

Constant Summary collapse

COMMENT =
'Comment'
DOCUMENT =
'Document'
MESSAGE =
'Message'
QUESTION_ANSWER =
'Question::Answer'
SCHEDULE_ENTRY =
'Schedule::Entry'
TODO =
'Todo'
TODOLIST =
'Todolist'
UPLOAD =
'Upload'

Class Method Summary collapse

Class Method Details

.allObject

rubocop:disable Style/ClassVars



15
16
17
18
19
# File 'lib/camper/recording_types.rb', line 15

def self.all
  @@recordings ||= constants(false).map { |c| const_get(c) }.sort

  @@recordings
end