Class: Office::EmailMessageStub

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/office/email_message_stub.rb

Overview

Only object_key, object_path, no validations.

Constant Summary collapse

STATE_PENDING =
'state_pending'
STATE_PROCESSED =
'state_processed'
STATES =
[ STATE_PENDING, STATE_PROCESSED ]

Instance Method Summary collapse

Instance Method Details

#object_keyObject

aka ‘filename’, use with bucket name + prefix



14
# File 'lib/office/email_message_stub.rb', line 14

field :object_key,  type: :string

#object_pathObject

A routable s3 url ## @TODO: remove this field. vp 2023-03-07



17
# File 'lib/office/email_message_stub.rb', line 17

field :object_path, type: :string