Module: RedmineAPIHelper::MyAccountAPIHelper

Included in:
Helpers
Defined in:
lib/redmine_api_helper/my_account_api_helper.rb

Instance Method Summary collapse

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 (**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 (**params)
  jget(params.merge(: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 (**params)
  jput({:user => params}, :url => )
end