Class: Rubill::Attachment

Inherits:
Base
  • Object
show all
Defined in:
lib/rubill/entities/attachment.rb

Instance Attribute Summary

Attributes inherited from Base

#remote_record

Class Method Summary collapse

Methods inherited from Base

#[], #[]=, active, all, create, delete, #delete, find, find_by_name, #id, #initialize, #save, update, where

Constructor Details

This class inherits a constructor from Rubill::Base

Class Method Details

.send_attachment(object_id, file_name, content) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/rubill/entities/attachment.rb', line 5

def self.send_attachment(object_id, file_name, content)
  Query.upload_attachment({
    id: object_id,
    fileName: file_name,
    document: content,
    content: content
  })
end