Module: RedmineAPIHelper::RolesAPIHelper
- Included in:
- Helpers
- Defined in:
- lib/redmine_api_helper/roles_api_helper.rb
Instance Method Summary collapse
-
#list_roles(**params) ⇒ Object
lists roles, corresponds to controller#index.
-
#read_role(id, **params) ⇒ Object
read role, corresponds to controller#show.
-
#role_url(id, **params) ⇒ Object
creates a role_url.
-
#roles_url(**params) ⇒ Object
reads roles_url from args.
Instance Method Details
#list_roles(**params) ⇒ Object
lists roles, corresponds to controller#index
40 41 42 |
# File 'lib/redmine_api_helper/roles_api_helper.rb', line 40 def list_roles(**params) list_objects(:roles, params) end |
#read_role(id, **params) ⇒ Object
read role, corresponds to controller#show
47 48 49 |
# File 'lib/redmine_api_helper/roles_api_helper.rb', line 47 def read_role(id, **params) read_object(:role, id, params) end |
#role_url(id, **params) ⇒ Object
creates a role_url
33 34 35 |
# File 'lib/redmine_api_helper/roles_api_helper.rb', line 33 def role_url(id, **params) url_path(roles_url, id, params) end |
#roles_url(**params) ⇒ Object
reads roles_url from args
26 27 28 |
# File 'lib/redmine_api_helper/roles_api_helper.rb', line 26 def roles_url(**params) url_path(args.urls.Home, "roles", params) end |