Class: ConvenientService::Examples::Standard::V1::RequestParams::Services::LogRequestParams

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard::V1
Defined in:
lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request:, params:, tag: Constants::Tags::EMPTY) ⇒ LogRequestParams

Returns a new instance of LogRequestParams.



14
15
16
17
18
# File 'lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb', line 14

def initialize(request:, params:, tag: Constants::Tags::EMPTY)
  @request = request
  @params = params
  @tag = tag
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



12
13
14
# File 'lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb', line 12

def params
  @params
end

#requestObject (readonly)

Returns the value of attribute request.



12
13
14
# File 'lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb', line 12

def request
  @request
end

#tagObject (readonly)

Returns the value of attribute tag.



12
13
14
# File 'lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb', line 12

def tag
  @tag
end

Instance Method Details

#resultObject



20
21
22
23
24
# File 'lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb', line 20

def result
  Entities::Logger.log(message)

  success
end