Class: Arkaan::Campaigns::File
- Inherits:
-
Object
- Object
- Arkaan::Campaigns::File
- 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.
Instance Attribute Summary collapse
-
#filename ⇒ String
The name of the file, corresponding to the AWS name.
-
#invitation ⇒ Arkaan::Campaigns::Invitation
The link to the user creator of the file and the campaign it’s created in.
Instance Attribute Details
#filename ⇒ String
Returns the name of the file, corresponding to the AWS name.
11 |
# File 'lib/arkaan/campaigns/file.rb', line 11 field :filename, type: String |
#invitation ⇒ Arkaan::Campaigns::Invitation
Returns the link to the user creator of the file and the campaign it’s created in.
15 |
# File 'lib/arkaan/campaigns/file.rb', line 15 :invitation, class_name: 'Arkaan::Campaigns::Invitation', inverse_of: :files |