class Crm::Activity::Comment::Attachment

Attachment represents an attachment of an {Activity::Comment activity comment}. @api public

Attributes

id[R]

Returns the ID of this attachment. @return [String] @api public

Public Class Methods

new(id) click to toggle source
# File lib/crm/activity.rb, line 61
def initialize(id)
  @id = id
end

Public Instance Methods

download_url() click to toggle source

Generates a download URL for this attachment. Retrieve the attachment data by fetching this URL. This URL is only valid for a couple of minutes. Hence, it is recommended to have such URLs generated on demand. @return [String] @api public

# File lib/crm/activity.rb, line 71
def download_url
  Crm::Core::AttachmentStore.generate_download_url(id)
end