Class: BigbluebuttonPlaybackFormat

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActiveModel::ForbiddenAttributesProtection
Defined in:
app/models/bigbluebutton_playback_format.rb

Instance Method Summary collapse

Instance Method Details

#length_in_secsObject



23
24
25
26
27
28
29
# File 'app/models/bigbluebutton_playback_format.rb', line 23

def length_in_secs
  if self.length.blank? || self.length < 0
    0
  else
    self.length * 60
  end
end