Class: DevSuite::RequestLogger::Request
- Inherits:
-
Object
- Object
- DevSuite::RequestLogger::Request
- Includes:
- Utils::WarningHandler
- Defined in:
- lib/dev_suite/request_logger/request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#cookies ⇒ Object
readonly
Returns the value of attribute cookies.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(method:, url:, headers:, cookies:, body:) ⇒ Request
constructor
A new instance of Request.
Methods included from Utils::WarningHandler
Constructor Details
#initialize(method:, url:, headers:, cookies:, body:) ⇒ Request
Returns a new instance of Request.
12 13 14 15 16 17 18 19 20 |
# File 'lib/dev_suite/request_logger/request.rb', line 12 def initialize(method:, url:, headers:, cookies:, body:) @method = method @url = url @headers = headers @cookies = @body = body validate_presence end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
10 11 12 |
# File 'lib/dev_suite/request_logger/request.rb', line 10 def body @body end |
#cookies ⇒ Object (readonly)
Returns the value of attribute cookies.
10 11 12 |
# File 'lib/dev_suite/request_logger/request.rb', line 10 def @cookies end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
10 11 12 |
# File 'lib/dev_suite/request_logger/request.rb', line 10 def headers @headers end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
10 11 12 |
# File 'lib/dev_suite/request_logger/request.rb', line 10 def method @method end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
10 11 12 |
# File 'lib/dev_suite/request_logger/request.rb', line 10 def url @url end |