module RedmineAPIHelper::MyAccountAPIHelper

Public Instance Methods

my_account_url(**params) click to toggle source

reads my_account_url from args

# 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) click to toggle source

reads my account, corresponds to controller#show

# 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) click to toggle source

updates my account with params, corresponds to controller#update

# 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