Class: Arkaan::Campaigns::File

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/arkaan/campaigns/file.rb

Overview

Representation of a file, allowing us to retrieve it on AWS by its filename and linked campaign ID.

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#filenameString

Returns the name of the file, corresponding to the AWS name.

Returns:

  • (String)

    the name of the file, corresponding to the AWS name.



11
# File 'lib/arkaan/campaigns/file.rb', line 11

field :filename, type: String

#invitationArkaan::Campaigns::Invitation

Returns the link to the user creator of the file and the campaign it’s created in.

Returns:



15
# File 'lib/arkaan/campaigns/file.rb', line 15

embedded_in :invitation, class_name: 'Arkaan::Campaigns::Invitation', inverse_of: :files