Module: Twigg::App::Routes

Defined in:
lib/twigg-app/app/routes.rb

Instance Method Summary collapse

Instance Method Details

#author_path(author) ⇒ Object



4
5
6
# File 'lib/twigg-app/app/routes.rb', line 4

def author_path(author)
  '/authors/' + author.tr(' ', '.')
end

#authors_path(options = {}) ⇒ Object



8
9
10
# File 'lib/twigg-app/app/routes.rb', line 8

def authors_path(options = {})
  '/authors' + query_string_from_options(options)
end

#gerrit_authors_pathObject



12
13
14
# File 'lib/twigg-app/app/routes.rb', line 12

def gerrit_authors_path
  '/gerrit/authors'
end

#gerrit_changes_pathObject



16
17
18
# File 'lib/twigg-app/app/routes.rb', line 16

def gerrit_changes_path
  '/gerrit'
end

#gerrit_tags_pathObject



20
21
22
# File 'lib/twigg-app/app/routes.rb', line 20

def gerrit_tags_path
  '/gerrit/tags'
end

#pairs_path(options = {}) ⇒ Object



24
25
26
# File 'lib/twigg-app/app/routes.rb', line 24

def pairs_path(options = {})
  '/pairs' + query_string_from_options(options)
end

#pivotal_path(options = {}) ⇒ Object



28
29
30
# File 'lib/twigg-app/app/routes.rb', line 28

def pivotal_path(options = {})
  '/pivotal' + query_string_from_options(options)
end

#russian_novels_path(options = {}) ⇒ Object



32
33
34
# File 'lib/twigg-app/app/routes.rb', line 32

def russian_novels_path(options = {})
  '/russian-novels' + query_string_from_options(options)
end

#team_path(team) ⇒ Object



36
37
38
# File 'lib/twigg-app/app/routes.rb', line 36

def team_path(team)
  '/teams/' + team.tr(' ', '.')
end

#teams_path(options = {}) ⇒ Object



40
41
42
# File 'lib/twigg-app/app/routes.rb', line 40

def teams_path(options = {})
  '/teams' + query_string_from_options(options)
end