Class: Miron::Request

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

Overview

Miron::Request converts an env hash of HTTP variables to a proper Request object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request_hash) ⇒ Request

Returns a new instance of Request

Parameters:

  • request_hash (Hash)

    Request information


11
12
13
14
# File 'lib/miron/request.rb', line 11

def initialize(request_hash)
  @hash = request_hash
  fix_hash_keys
end

Instance Attribute Details

#hashObject

Returns the value of attribute hash


6
7
8
# File 'lib/miron/request.rb', line 6

def hash
  @hash
end

#request_hashObject (readonly)

Returns the value of attribute request_hash


5
6
7
# File 'lib/miron/request.rb', line 5

def request_hash
  @request_hash
end