Class: JsChat::Protocol::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/jschat/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, time) ⇒ Response

Returns a new instance of Response.



55
56
57
# File 'lib/jschat/client.rb', line 55

def initialize(message, time)
  @message, @time = message, time
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



54
55
56
# File 'lib/jschat/client.rb', line 54

def message
  @message
end

#timeObject (readonly)

Returns the value of attribute time.



54
55
56
# File 'lib/jschat/client.rb', line 54

def time
  @time
end