Module: RedmineAPIHelper::MyAccountAPIHelper
- Included in:
- Helpers
- Defined in:
- lib/redmine_api_helper/my_account_api_helper.rb
Instance Method Summary collapse
-
#my_account_url(**params) ⇒ Object
reads my_account_url from args.
-
#read_my_account(**params) ⇒ Object
reads my account, corresponds to controller#show.
-
#update_my_account(**params) ⇒ Object
updates my account with params, corresponds to controller#update.
Instance Method Details
#my_account_url(**params) ⇒ Object
reads my_account_url from args
26 27 28 |
# File 'lib/redmine_api_helper/my_account_api_helper.rb', line 26 def my_account_url(**params) url_path(args.urls.Home, "my", "account", params) end |
#read_my_account(**params) ⇒ Object
reads my account, corresponds to controller#show
33 34 35 |
# File 'lib/redmine_api_helper/my_account_api_helper.rb', line 33 def read_my_account(**params) jget(params.merge(:url => my_account_url)).user end |
#update_my_account(**params) ⇒ Object
updates my account with params, corresponds to controller#update
40 41 42 |
# File 'lib/redmine_api_helper/my_account_api_helper.rb', line 40 def update_my_account(**params) jput({:user => params}, :url => my_account_url) end |