Class: Turntabler::Boot
Overview
Represents an event where a user has been booted from a room
Instance Attribute Summary collapse
-
#moderator ⇒ Turntabler::User
readonly
The moderator that booted the user.
-
#reason ⇒ String
readonly
The reason for being booted.
-
#user ⇒ Turntabler::User
readonly
The user that was booted from the room.
Attributes inherited from Resource
Method Summary
Methods inherited from Resource
#==, attribute, #attributes=, #hash, #initialize, #load, #loaded?, #pretty_print, #pretty_print_instance_variables
Methods included from Assertions
#assert_valid_keys, #assert_valid_values
Methods included from DigestHelpers
Constructor Details
This class inherits a constructor from Turntabler::Resource
Instance Attribute Details
#moderator ⇒ Turntabler::User (readonly)
The moderator that booted the user
14 15 16 |
# File 'lib/turntabler/boot.rb', line 14 attribute :moderator, :modid do |value| room.build_user(:_id => value) end |
#reason ⇒ String (readonly)
The reason for being booted
20 |
# File 'lib/turntabler/boot.rb', line 20 attribute :reason |
#user ⇒ Turntabler::User (readonly)
The user that was booted from the room
8 9 10 |
# File 'lib/turntabler/boot.rb', line 8 attribute :user, :userid do |value| room.build_user(:_id => value) end |