Class: BigbluebuttonPlaybackFormat
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BigbluebuttonPlaybackFormat
- Includes:
- ActiveModel::ForbiddenAttributesProtection
- Defined in:
- app/models/bigbluebutton_playback_format.rb
Instance Method Summary collapse
Instance Method Details
#length_in_secs ⇒ Object
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 |