module Micropub::Homesteading class Router H_MAP = { "entry" => "note" } attr_reader :as def initialize(params={}) @as = params["as"] || h_map(params["h"]) end def h_map(h) H_MAP[h] end end end