Method: Grape::Path#initialize

Defined in:
lib/grape/path.rb

#initialize(raw_path, raw_namespace, settings) ⇒ Path

Returns a new instance of Path.



12
13
14
15
# File 'lib/grape/path.rb', line 12

def initialize(raw_path, raw_namespace, settings)
  @origin = PartsCache[build_parts(raw_path, raw_namespace, settings)]
  @suffix = build_suffix(raw_path, raw_namespace, settings)
end