Sha256: 0adb8d2a66e558f0f841c24f967024d42fa3e16fe601130983f930a656e49d8f

Contents?: true

Size: 679 Bytes

Versions: 28

Compression:

Stored size: 679 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 :object_key, presence: true, uniqueness: true

  # 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

28 entries across 28 versions & 1 rubygems

Version Path
ish_models-3.0.0.1 lib/office/email_message_stub.rb
ish_models-0.0.33.304 lib/office/email_message_stub.rb
ish_models-0.0.33.303 lib/office/email_message_stub.rb
ish_models-0.0.33.302 lib/office/email_message_stub.rb
ish_models-0.0.33.301 lib/office/email_message_stub.rb
ish_models-0.0.33.300 lib/office/email_message_stub.rb
ish_models-0.0.33.299 lib/office/email_message_stub.rb
ish_models-0.0.33.298 lib/office/email_message_stub.rb
ish_models-0.0.33.297 lib/office/email_message_stub.rb
ish_models-0.0.33.296 lib/office/email_message_stub.rb
ish_models-0.0.33.295 lib/office/email_message_stub.rb
ish_models-0.0.33.294 lib/office/email_message_stub.rb
ish_models-0.0.33.293 lib/office/email_message_stub.rb
ish_models-0.0.33.292 lib/office/email_message_stub.rb
ish_models-0.0.33.291 lib/office/email_message_stub.rb
ish_models-0.0.33.287 lib/office/email_message_stub.rb
ish_models-0.0.33.286 lib/office/email_message_stub.rb
ish_models-0.0.33.285 lib/office/email_message_stub.rb
ish_models-0.0.33.284 lib/office/email_message_stub.rb
ish_models-0.0.33.283 lib/office/email_message_stub.rb