Sha256: 0091a3ea16ca343e12bb3f5ed31c73e64a913a8366c46df1ebedc89c4d518a03
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
class BigbluebuttonAttendee attr_accessor :user_id, :full_name, :role def from_hash(hash) self.user_id = hash[:userID].to_s self.full_name = hash[:fullName].to_s self.role = hash[:role].downcase == "moderator" ? :moderator : :attendee end def ==(other) r = true [:user_id, :full_name, :role].each do |param| r = r && self.send(param) == other.send(param) end r end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-0.0.2 | lib/classes/bigbluebutton_attendee.rb |