Sha256: e60083dee442289f0143cbfe4623d9bde7ef3066c1fac00fa371cedcbc4a3e43

Contents?: true

Size: 720 Bytes

Versions: 5

Compression:

Stored size: 720 Bytes

Contents

##
## Only object_key, object_path, no validations.
##
class Office::EmailMessageStub
  include Mongoid::Document
  include Mongoid::Timestamps

  STATE_PENDING   = 'state_pending'
  STATE_PROCESSED = 'state_processed'
  STATES          = [ STATE_PENDING, STATE_PROCESSED ]
  field :state, type: :string, default: STATE_PENDING

  field :object_key,  type: :string ## aka 'filename', use with bucket name + prefix
  validates_presence_of :object_key

  field :object_path, type: :string ## A routable s3 url ## @TODO: remove this field. _vp_ 2023-03-07
  # validates_presence_of :object_path ## only need object_key == message_id

  field :term_ids, type: :array, default: []

end
Stub = EMS = Office::EmailMessageStub

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ish_models-0.0.33.199 lib/office/email_message_stub.rb
ish_models-0.0.33.198 lib/office/email_message_stub.rb
ish_models-0.0.33.197 lib/office/email_message_stub.rb
ish_models-0.0.33.196 lib/office/email_message_stub.rb
ish_models-0.0.33.195 lib/office/email_message_stub.rb