Class: LWS::Ticket::Attachment

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/ticket.rb

Overview

The ticket message attachment class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#av_scanned_atString?

Returns the timestamp of when an anti-virus scan on the attached file was performed.

Returns:

  • (String, nil)

    the timestamp of when an anti-virus scan on the attached file was performed



44
# File 'lib/lws/apps/ticket.rb', line 44

attribute :av_scanned_at

#file_objectString

Returns the URL of the attachment file object.

Returns:

  • (String)

    the URL of the attachment file object



48
# File 'lib/lws/apps/ticket.rb', line 48

attribute :file_object

#messageMessage

Returns the ticket message associated with the attachment.

Returns:

  • (Message)

    the ticket message associated with the attachment



52
# File 'lib/lws/apps/ticket.rb', line 52

belongs_to :message

#message_idInteger

Returns the ID of the ticket message associated with the attachment.

Returns:

  • (Integer)

    the ID of the ticket message associated with the attachment



57
# File 'lib/lws/apps/ticket.rb', line 57

attribute :message_id

#nameString

Returns the name of the attachment.

Returns:

  • (String)

    the name of the attachment



61
# File 'lib/lws/apps/ticket.rb', line 61

attribute :name

#sizeInteger

Returns the size of the attachment (bytes).

Returns:

  • (Integer)

    the size of the attachment (bytes)



65
# File 'lib/lws/apps/ticket.rb', line 65

attribute :size

#urlString

Returns the URL to the attachment that can be used to download it.

Returns:

  • (String)

    the URL to the attachment that can be used to download it



70
# File 'lib/lws/apps/ticket.rb', line 70

attribute :url