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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Config

included

Constructor Details

#initialize(request:, pattern:) ⇒ ExtractParamsFromPath

Returns a new instance of ExtractParamsFromPath.



23
24
25
26
# File 'lib/convenient_service/examples/standard/v1/request_params/services/extract_params_from_path.rb', line 23

def initialize(request:, pattern:)
  @request = request
  @pattern = pattern
end

Instance Attribute Details

#patternObject (readonly)

Returns the value of attribute pattern.



17
18
19
# File 'lib/convenient_service/examples/standard/v1/request_params/services/extract_params_from_path.rb', line 17

def pattern
  @pattern
end

#requestObject (readonly)

Returns the value of attribute request.



17
18
19
# File 'lib/convenient_service/examples/standard/v1/request_params/services/extract_params_from_path.rb', line 17

def request
  @request
end