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

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



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

attribute :av_scanned_at

#created_atString (readonly)

Returns the timestamp of when the ticket message attachment was created.

Returns:

  • (String)

    the timestamp of when the ticket message attachment was created



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

attribute :created_at

#file_objectString

Returns the URL of the attachment file object.

Returns:

  • (String)

    the URL of the attachment file object



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

attribute :file_object

#idFixnum (readonly)

Returns the (unique) ID of the ticket message attachment.

Returns:

  • (Fixnum)

    the (unique) ID of the ticket message attachment



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

attribute :id

#messageMessage

Returns the ticket message associated with the attachment.

Returns:

  • (Message)

    the ticket message associated with the attachment



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

belongs_to :message

#message_idFixnum

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

Returns:

  • (Fixnum)

    the ID of the ticket message associated with the attachment



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

attribute :message_id

#nameString

Returns the name of the attachment.

Returns:

  • (String)

    the name of the attachment



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

attribute :name

#sizeFixnum

Returns the size of the attachment (bytes).

Returns:

  • (Fixnum)

    the size of the attachment (bytes)



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

attribute :size

#updated_atString (readonly)

Returns the timestamp of when the ticket message attachment was last updated.

Returns:

  • (String)

    the timestamp of when the ticket message attachment was last updated



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

attribute :updated_at

#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



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

attribute :url