Sha256: 7f04603aabbd3cd8d03bd3ced8fd381fbc53750937059e521be9da5c52e359f2

Contents?: true

Size: 723 Bytes

Versions: 17

Compression:

Stored size: 723 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 :wp_term_ids, type: :array, default: []

end
Stub = EMS = Office::EmailMessageStub

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ish_models-0.0.33.217 lib/office/email_message_stub.rb
ish_models-0.0.33.215 lib/office/email_message_stub.rb
ish_models-0.0.33.214 lib/office/email_message_stub.rb
ish_models-0.0.33.213 lib/office/email_message_stub.rb
ish_models-0.0.33.212 lib/office/email_message_stub.rb
ish_models-0.0.33.211 lib/office/email_message_stub.rb
ish_models-0.0.33.210 lib/office/email_message_stub.rb
ish_models-0.0.33.209 lib/office/email_message_stub.rb
ish_models-0.0.33.208 lib/office/email_message_stub.rb
ish_models-0.0.33.207 lib/office/email_message_stub.rb
ish_models-0.0.33.206 lib/office/email_message_stub.rb
ish_models-0.0.33.205 lib/office/email_message_stub.rb
ish_models-0.0.33.204 lib/office/email_message_stub.rb
ish_models-0.0.33.203 lib/office/email_message_stub.rb
ish_models-0.0.33.202 lib/office/email_message_stub.rb
ish_models-0.0.33.201 lib/office/email_message_stub.rb
ish_models-0.0.33.200 lib/office/email_message_stub.rb