Sha256: c9cc6dc7375ae53302336f76f2f280857a7c983b39c6abd479be511f370dc429

Contents?: true

Size: 245 Bytes

Versions: 3

Compression:

Stored size: 245 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
micropub-server-rails-0.1.8 lib/micropub/homesteading/router.rb
micropub-server-rails-0.1.7 lib/micropub/homesteading/router.rb
micropub-server-rails-0.1.6 lib/micropub/homesteading/router.rb