Sha256: 5043fe5022c635307326d21a8074876667e31cf75080cd6c75f2ec37de0ab56f
Contents?: true
Size: 964 Bytes
Versions: 4
Compression:
Stored size: 964 Bytes
Contents
module Twigg module App module Routes def author_path(author) '/authors/' + author.tr(' ', '.') end def authors_path(options = {}) '/authors' + query_string_from_options(options) end def gerrit_authors_path '/gerrit/authors' end def gerrit_changes_path '/gerrit' end def gerrit_tags_path '/gerrit/tags' end def pairs_path(options = {}) '/pairs' + query_string_from_options(options) end def russian_novels_path(options = {}) '/russian-novels' + query_string_from_options(options) end def team_path(team) '/teams/' + team.tr(' ', '.') end def teams_path(options = {}) '/teams' + query_string_from_options(options) end private def query_string_from_options(options) options.empty? ? '' : "?#{::URI.encode_www_form(options)}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twigg-app-0.0.5 | lib/twigg-app/app/routes.rb |
twigg-app-0.0.4 | lib/twigg-app/app/routes.rb |
twigg-app-0.0.3 | lib/twigg-app/app/routes.rb |
twigg-app-0.0.2 | lib/twigg-app/app/routes.rb |