Class: Webmate::SocketIO::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/webmate/socket.io/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @params = options[:params]
  @path = options[:path]
  @method = options[:method]
  @body = options[:body] || ''
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/webmate/socket.io/request.rb', line 4

def body
  @body
end

#methodObject

Returns the value of attribute method.



4
5
6
# File 'lib/webmate/socket.io/request.rb', line 4

def method
  @method
end

#paramsObject

Returns the value of attribute params.



4
5
6
# File 'lib/webmate/socket.io/request.rb', line 4

def params
  @params
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/webmate/socket.io/request.rb', line 4

def path
  @path
end