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

Inherits:
Object
  • Object
show all
Includes:
Service::Configs::Standard
Defined in:
lib/convenient_service/examples/standard/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.



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

#paramsObject (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

#requestObject (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

#tagObject (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

#resultObject



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(message)

  success
end