Method: Warchat::Chat::Presence#initialize

Defined in:
lib/warchat/chat/presence.rb

#initialize(response) ⇒ Presence

Returns a new instance of Presence.



8
9
10
11
12
13
14
# File 'lib/warchat/chat/presence.rb', line 8

def initialize response
  @response = response
  @type = response["presenceType"]

  character.respond_to? status.to_sym and character.send status.to_sym
  
end