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.254 lib/office/email_message_stub.rb
ish_models-0.0.33.253 lib/office/email_message_stub.rb
ish_models-0.0.33.252 lib/office/email_message_stub.rb
ish_models-0.0.33.251 lib/office/email_message_stub.rb
ish_models-0.0.33.250 lib/office/email_message_stub.rb
ish_models-0.0.33.249 lib/office/email_message_stub.rb
ish_models-0.0.33.248 lib/office/email_message_stub.rb
ish_models-0.0.33.247 lib/office/email_message_stub.rb
ish_models-0.0.33.246 lib/office/email_message_stub.rb
ish_models-0.0.33.245 lib/office/email_message_stub.rb
ish_models-0.0.33.244 lib/office/email_message_stub.rb
ish_models-0.0.33.243 lib/office/email_message_stub.rb
ish_models-0.0.33.242 lib/office/email_message_stub.rb
ish_models-0.0.33.241 lib/office/email_message_stub.rb
ish_models-0.0.33.240 lib/office/email_message_stub.rb
ish_models-0.0.33.239 lib/office/email_message_stub.rb
ish_models-0.0.33.238 lib/office/email_message_stub.rb
ish_models-0.0.33.237 lib/office/email_message_stub.rb
ish_models-0.0.33.236 lib/office/email_message_stub.rb