module Helpscout::Mailbox::Paths

Constants

PATH_MAP
VERSION

Public Instance Methods

generate_path(path, values) click to toggle source
# File lib/helpscout/mailbox/paths.rb, line 139
def generate_path(path, values)
  template = PATH_MAP[path]
  raise "path '#{path}' not found" if template.nil?

  { method: template.first, path: template.last % values }
end