Class: ConvenientService::Examples::Standard::RequestParams::Services::LogRequestParams
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Standard::RequestParams::Services::LogRequestParams
- Includes:
- Service::Configs::Standard
- Defined in:
- lib/convenient_service/examples/standard/request_params/services/log_request_params.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(request:, params:, tag: Constants::Tags::EMPTY) ⇒ LogRequestParams
constructor
A new instance of LogRequestParams.
- #result ⇒ Object
Constructor Details
#initialize(request:, params:, tag: Constants::Tags::EMPTY) ⇒ LogRequestParams
Returns a new instance of LogRequestParams.
13 14 15 16 17 |
# File 'lib/convenient_service/examples/standard/request_params/services/log_request_params.rb', line 13 def initialize(request:, params:, tag: Constants::Tags::EMPTY) @request = request @params = params @tag = tag end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
11 12 13 |
# File 'lib/convenient_service/examples/standard/request_params/services/log_request_params.rb', line 11 def params @params end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
11 12 13 |
# File 'lib/convenient_service/examples/standard/request_params/services/log_request_params.rb', line 11 def request @request end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
11 12 13 |
# File 'lib/convenient_service/examples/standard/request_params/services/log_request_params.rb', line 11 def tag @tag end |
Instance Method Details
#result ⇒ Object
19 20 21 22 23 |
# File 'lib/convenient_service/examples/standard/request_params/services/log_request_params.rb', line 19 def result Entities::Logger.log() success end |