Class: Embargoed::Request
- Inherits:
-
Object
- Object
- Embargoed::Request
- Defined in:
- lib/embargoed/request.rb
Instance Method Summary collapse
- #allowed? ⇒ Boolean
-
#initialize(env) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(env) ⇒ Request
Returns a new instance of Request.
5 6 7 |
# File 'lib/embargoed/request.rb', line 5 def initialize(env) @rack_request = Rack::Request.new(env) end |
Instance Method Details
#allowed? ⇒ Boolean
9 10 11 |
# File 'lib/embargoed/request.rb', line 9 def allowed? path_allowed? || ip_allowed? end |