Class: BigbluebuttonAttendee
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BigbluebuttonAttendee
- Includes:
- ActiveModel::ForbiddenAttributesProtection
- Defined in:
- app/models/bigbluebutton_attendee.rb
Instance Attribute Summary collapse
-
#role ⇒ Object
TODO: no role on getStats yet, but it exists on getMeetings.
Instance Method Summary collapse
Instance Attribute Details
#role ⇒ Object
TODO: no role on getStats yet, but it exists on getMeetings
10 11 12 |
# File 'app/models/bigbluebutton_attendee.rb', line 10 def role @role end |
Instance Method Details
#duration ⇒ Object
12 13 14 |
# File 'app/models/bigbluebutton_attendee.rb', line 12 def duration self.left_time - self.join_time end |
#from_hash(hash) ⇒ Object
16 17 18 19 20 |
# File 'app/models/bigbluebutton_attendee.rb', line 16 def from_hash(hash) self.user_id = hash[:userID].to_s self.user_name = hash[:fullName].to_s self.role = hash[:role].to_s.downcase == "moderator" ? :moderator : :attendee end |