module RedmineAPIHelper::TimeEntriesAPIHelper

Public Instance Methods

create_time_entry(**params) click to toggle source

creates a new time_entry with params, corresponds to controller#create

# File lib/redmine_api_helper/time_entries_api_helper.rb, line 54
def create_time_entry(**params)
  create_object(:time_entry, params)
end
destroy_time_entry(id, **params) click to toggle source

deletes an existing time_entry with params, corresponds to controller#destroy

# File lib/redmine_api_helper/time_entries_api_helper.rb, line 68
def destroy_time_entry(id, **params)
  destroy_object(:time_entry, id, params)
end
list_time_entries(**params) click to toggle source

lists time_entries, corresponds to controller#index

# File lib/redmine_api_helper/time_entries_api_helper.rb, line 40
def list_time_entries(**params)
  list_objects(:time_entries, params)
end
read_time_entry(id, **params) click to toggle source

reads time_entry having id, corresponds to controller#show

# File lib/redmine_api_helper/time_entries_api_helper.rb, line 47
def read_time_entry(id, **params)
  read_object(:time_entry, id, params)
end
time_entries_url(**params) click to toggle source

reads time_entries_url from args

# File lib/redmine_api_helper/time_entries_api_helper.rb, line 26
def time_entries_url(**params)
  url_path(args.urls.Home, "time_entries", params)
end
time_entry_url(id, **params) click to toggle source

creates a time_entry_url

# File lib/redmine_api_helper/time_entries_api_helper.rb, line 33
def time_entry_url(id, **params)
  url_path(time_entries_url, id, params)
end
update_time_entry(id, **params) click to toggle source

updates an existing time_entry with params, corresponds to controller#update

# File lib/redmine_api_helper/time_entries_api_helper.rb, line 61
def update_time_entry(id, **params)
  update_object(:time_entry, id, params)
end