class FreeAgent::AttachmentsResource

Public Instance Methods

delete(id:) click to toggle source
# File lib/free_agent/resources/attachments.rb, line 9
def delete(id:)
  response = delete_request("attachments/#{id}")
  response.success?
end
retrieve(id:) click to toggle source
# File lib/free_agent/resources/attachments.rb, line 4
def retrieve(id:)
  response = get_request("attachments/#{id}")
  Attachment.new(response.body["attachment"])
end