module RedmineAPIHelper::AttachmentsAPIHelper

Public Instance Methods

attachment_url(id, **params) click to toggle source

creates an attachment_url from args

# File lib/redmine_api_helper/attachments_api_helper.rb, line 26
def attachment_url(id, **params)
  url_path(args.urls.Home, "attachments", id, params)
end
destroy_attachment(id, **params) click to toggle source

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

# File lib/redmine_api_helper/attachments_api_helper.rb, line 47
def destroy_attachment(id, **params)
  destroy_object(:attachment, id, params)
end
read_attachment(id, **params) click to toggle source

reads attachment having id, corresponds to controller#show

# File lib/redmine_api_helper/attachments_api_helper.rb, line 33
def read_attachment(id, **params)
  read_object(:attachment, id, params)
end
update_attachment(id, **params) click to toggle source

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

# File lib/redmine_api_helper/attachments_api_helper.rb, line 40
def update_attachment(id, **params)
  update_object(:attachment, id, params)
end