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



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

attribute :av_scanned_at

#file_objectString

Returns the URL of the attachment file object.

Returns:

  • (String)

    the URL of the attachment file object



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

attribute :file_object

#messageMessage

Returns the ticket message associated with the attachment.

Returns:

  • (Message)

    the ticket message associated with the attachment



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

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



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

attribute :message_id

#nameString

Returns the name of the attachment.

Returns:

  • (String)

    the name of the attachment



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

attribute :name

#sizeInteger

Returns the size of the attachment (bytes).

Returns:

  • (Integer)

    the size of the attachment (bytes)



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

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



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

attribute :url