Class: Reynard::Http::Request
- Inherits:
-
Object
- Object
- Reynard::Http::Request
- Defined in:
- lib/reynard/http/request.rb
Overview
Configures and performs an HTTP request.
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(request_context:) ⇒ Request
constructor
A new instance of Request.
- #perform ⇒ Object
Constructor Details
#initialize(request_context:) ⇒ Request
Returns a new instance of Request.
12 13 14 15 |
# File 'lib/reynard/http/request.rb', line 12 def initialize(request_context:) @request_context = request_context @uri = URI(@request_context.url) end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
10 11 12 |
# File 'lib/reynard/http/request.rb', line 10 def uri @uri end |