lib/meta/application/route.rb in meta-api-0.0.2 vs lib/meta/application/route.rb in meta-api-0.0.3

- old
+ new

@@ -1,20 +1,20 @@ # frozen_string_literal: true require_relative 'execution' require_relative 'path_matching_mod' -require_relative 'meta' +require_relative 'metadata' module Meta class Route include PathMatchingMod.new(path_method: :path, matching_mode: :full) attr_reader :path, :method, :meta, :actions def initialize(path: '', method: :all, meta: {}, actions: []) @path = Utils::Path.normalize_path(path) @method = method - @meta = Meta.new(meta) + @meta = Metadata.new(meta) @actions = actions end def execute(execution, remaining_path) path_matching.merge_path_params(remaining_path, execution.request)