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