Class: Webmachine::RackRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/webmachine/rack_adapter_monkey_patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#patch?, #put?

Constructor Details

#initialize(method, uri, headers, body, routing_tokens, base_uri, env) ⇒ RackRequest

Returns a new instance of RackRequest.



10
11
12
13
# File 'lib/webmachine/rack_adapter_monkey_patch.rb', line 10

def initialize(method, uri, headers, body, routing_tokens, base_uri, env)
  super(method, uri, headers, body, routing_tokens, base_uri)
  @env = env
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



8
9
10
# File 'lib/webmachine/rack_adapter_monkey_patch.rb', line 8

def env
  @env
end