Class: CeilingCat::Campfire::Event

Inherits:
Event
  • Object
show all
Defined in:
lib/ceiling_cat/services/campfire/event.rb

Instance Attribute Summary

Attributes inherited from Event

#body, #room, #time, #user

Instance Method Summary collapse

Methods inherited from Event

#handle, #initialize

Constructor Details

This class inherits a constructor from CeilingCat::Event

Instance Method Details

#typeObject



5
6
7
8
9
10
11
12
13
14
# File 'lib/ceiling_cat/services/campfire/event.rb', line 5

def type
  case @type
  when "EnterMessage", :entrance
    :entrance
  when "TextMessage", :chat
    :chat
  when "LeaveMessage", "KickMessage", :exit
    :exit
  end
end