Class: Turntabler::Boot

Inherits:
Resource show all
Defined in:
lib/turntabler/boot.rb

Overview

Represents an event where a user has been booted from a room

Instance Attribute Summary collapse

Attributes inherited from Resource

#id

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

#digest

Constructor Details

This class inherits a constructor from Turntabler::Resource

Instance Attribute Details

#moderatorTurntabler::User (readonly)

The moderator that booted the user

Returns:



14
15
16
# File 'lib/turntabler/boot.rb', line 14

attribute :moderator, :modid do |value|
  room.build_user(:_id => value)
end

#reasonString (readonly)

The reason for being booted

Returns:

  • (String)


20
# File 'lib/turntabler/boot.rb', line 20

attribute :reason

#userTurntabler::User (readonly)

The user that was booted from the room

Returns:



8
9
10
# File 'lib/turntabler/boot.rb', line 8

attribute :user, :userid do |value|
  room.build_user(:_id => value)
end