Class: Limbo::Rails::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/limbo/rails/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ Request

Returns a new instance of Request.



4
5
6
# File 'lib/limbo/rails/request.rb', line 4

def initialize(request)
  @request = request
end

Instance Method Details

#urlObject



8
9
10
# File 'lib/limbo/rails/request.rb', line 8

def url
  "#{@request.protocol}#{@request.host_with_port}#{@request.fullpath}"
end