Class: Course::Settings::VirtualClassroomsComponent

Inherits:
Component
  • Object
show all
Includes:
ActiveModel::Conversion
Defined in:
app/models/course/settings/virtual_classrooms_component.rb

Instance Method Summary collapse

Instance Method Details

#braincert_server_regionString

Returns BrainCert Virtual Classroom server region


38
39
40
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 38

def braincert_server_region
  settings.braincert_server_region || 7 # 7 is code for Singapore
end

#braincert_server_region=(value) ⇒ Object

Sets BrainCert Virtual Classroom server region


45
46
47
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 45

def braincert_server_region=(value)
  settings.braincert_server_region = value
end

#braincert_whiteboard_api_keyString

Returns BrainCert Whiteboard API key of virtual classrooms component


10
11
12
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 10

def braincert_whiteboard_api_key
  settings.braincert_whiteboard_api_key
end

#braincert_whiteboard_api_key=(value) ⇒ Object

Sets BrainCert Whiteboard API key of virtual classrooms component


31
32
33
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 31

def braincert_whiteboard_api_key=(value)
  settings.braincert_whiteboard_api_key = value
end

#braincert_whiteboard_timezoneInteger

Returns BrainCert timezone of Virtual Classrooms component


17
18
19
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 17

def braincert_whiteboard_timezone
  settings.braincert_whiteboard_timezone || 28 # 28 is GMT
end

#braincert_whiteboard_timezone=(value) ⇒ Integer

Sets BrainCert Whiteboard timezone


24
25
26
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 24

def braincert_whiteboard_timezone=(value)
  settings.braincert_whiteboard_timezone = value
end

#max_durationString

Returns the max duration of virtual classrooms component


67
68
69
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 67

def max_duration
  settings.max_duration || 60
end

#max_duration=(max_duration) ⇒ Object

Sets the max duration of virtual classrooms component


74
75
76
77
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 74

def max_duration=(max_duration)
  max_duration = nil if max_duration.blank?
  settings.max_duration = max_duration
end

#paginationInteger

Returns the virtual classroom pagination count


82
83
84
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 82

def pagination
  settings.pagination || 50
end

#pagination=(count) ⇒ Object

Sets the virtual classroom pagination number


89
90
91
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 89

def pagination=(count)
  settings.pagination = count
end

#titleString

Returns the title of virtual classrooms component


52
53
54
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 52

def title
  settings.title
end

#title=(title) ⇒ Object

Sets the title of virtual classrooms component


59
60
61
62
# File 'app/models/course/settings/virtual_classrooms_component.rb', line 59

def title=(title)
  title = nil if title.blank?
  settings.title = title
end