Sha256: 36e77c45edc93c33c8f499604f0a7b867f508618b181893fb4fc5a4d8f41adb2

Contents?: true

Size: 649 Bytes

Versions: 39

Compression:

Stored size: 649 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

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

end
MsgStub = EMS = Office::EmailMessageStub

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ish_models-0.0.33.274 lib/office/email_message_stub.rb
ish_models-0.0.33.273 lib/office/email_message_stub.rb
ish_models-0.0.33.272 lib/office/email_message_stub.rb
ish_models-0.0.33.271 lib/office/email_message_stub.rb
ish_models-0.0.33.270 lib/office/email_message_stub.rb
ish_models-0.0.33.269 lib/office/email_message_stub.rb
ish_models-0.0.33.268 lib/office/email_message_stub.rb
ish_models-0.0.33.267 lib/office/email_message_stub.rb
ish_models-0.0.33.266 lib/office/email_message_stub.rb
ish_models-0.0.33.265 lib/office/email_message_stub.rb
ish_models-0.0.33.264 lib/office/email_message_stub.rb
ish_models-0.0.33.263 lib/office/email_message_stub.rb
ish_models-0.0.33.262 lib/office/email_message_stub.rb
ish_models-0.0.33.261 lib/office/email_message_stub.rb
ish_models-0.0.33.260 lib/office/email_message_stub.rb
ish_models-0.0.33.259 lib/office/email_message_stub.rb
ish_models-0.0.33.258 lib/office/email_message_stub.rb
ish_models-0.0.33.257 lib/office/email_message_stub.rb
ish_models-0.0.33.256 lib/office/email_message_stub.rb
ish_models-0.0.33.255 lib/office/email_message_stub.rb