Class: DomoscioAdmin::ResourceUser
- Defined in:
- lib/domoscio_admin/resources/resource_user.rb
Direct Known Subclasses
Class Method Summary collapse
Methods inherited from Resource
Class Method Details
.url(id = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/domoscio_admin/resources/resource_user.rb', line 4 def url(id = nil) if self == Resource raise NotImplementedError.new('Resource is an abstract class. Do not use it directly.') end build_url = "/users" build_url << "/#{CGI.escape(id.to_s.gsub('.', '%2E'))}" if id return build_url end |