module Xeroizer::Record::Attachment::Extensions

Public Instance Methods

attach_data(filename, data, content_type = "application/octet-stream", options = {}) click to toggle source
# File lib/xeroizer/models/attachment.rb, line 63
def attach_data(filename, data, content_type = "application/octet-stream", options = {})
  parent.attach_data(id, filename, data, content_type, options)
end
attach_file(filename, path, content_type = "application/octet-stream", options = {}) click to toggle source
# File lib/xeroizer/models/attachment.rb, line 59
def attach_file(filename, path, content_type = "application/octet-stream", options = {})
  parent.attach_file(id, filename, path, content_type, options)
end
attachments() click to toggle source
# File lib/xeroizer/models/attachment.rb, line 67
def attachments
  parent.attachments(id)
end