Module: Localeapp::Routes::Projects

Included in:
Localeapp::Routes
Defined in:
lib/localeapp/routes/projects.rb

Instance Method Summary collapse

Instance Method Details

#project_endpoint(options = {}) ⇒ Object



4
5
6
# File 'lib/localeapp/routes/projects.rb', line 4

def project_endpoint(options = {})
  [:get, project_url(options)]
end

#project_url(options = {}) ⇒ Object



8
9
10
11
# File 'lib/localeapp/routes/projects.rb', line 8

def project_url(options = {})
  options[:format] ||= 'json'
  http_scheme.build(base_options.merge(:path => project_path(options[:format]))).to_s
end