module Google::Civic::Router

Constants

BASE_PATH
BASE_URL
ROUTES

Private Instance Methods

method_for(kind) click to toggle source
# File lib/google-civic/router.rb, line 26
def method_for(kind)
  route_map_for(kind).fetch(:method)
end
path_for(kind) click to toggle source
# File lib/google-civic/router.rb, line 30
def path_for(kind)
  [BASE_PATH, route_map_for(kind).fetch(:path)].join('')
end
route_map_for(kind) click to toggle source
# File lib/google-civic/router.rb, line 22
def route_map_for(kind)
  ROUTES.fetch(kind)
end