Class: Webmate::SocketIO::Request
- Inherits:
-
Object
- Object
- Webmate::SocketIO::Request
- Defined in:
- lib/webmate/socket.io/request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#method ⇒ Object
Returns the value of attribute method.
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(options = {}) ⇒ Request
Returns a new instance of Request.
6 7 8 9 10 11 |
# File 'lib/webmate/socket.io/request.rb', line 6 def initialize( = {}) @params = [:params] @path = [:path] @method = [:method] @body = [:body] || '' end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
4 5 6 |
# File 'lib/webmate/socket.io/request.rb', line 4 def body @body end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/webmate/socket.io/request.rb', line 4 def method @method end |
#params ⇒ Object
Returns the value of attribute params.
4 5 6 |
# File 'lib/webmate/socket.io/request.rb', line 4 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/webmate/socket.io/request.rb', line 4 def path @path end |