Class: JsChat::Protocol::Response
- Inherits:
-
Object
- Object
- JsChat::Protocol::Response
- Defined in:
- lib/jschat/client.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(message, time) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(message, time) ⇒ Response
Returns a new instance of Response.
55 56 57 |
# File 'lib/jschat/client.rb', line 55 def initialize(, time) @message, @time = , time end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
54 55 56 |
# File 'lib/jschat/client.rb', line 54 def @message end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
54 55 56 |
# File 'lib/jschat/client.rb', line 54 def time @time end |