Class: Preneeds::PreneedSubmission
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Preneeds::PreneedSubmission
- Defined in:
- app/models/preneeds/preneed_submission.rb
Overview
A record to track a BurialForm form submission.
Instance Attribute Summary collapse
-
#application_uuid ⇒ String
Submitted application’s uuid - from EOAS.
-
#created_at ⇒ Timestamp
Created at date.
-
#id ⇒ Integer
Auto-increment primary key.
-
#return_code ⇒ Integer
Submission’s return code - from EOAS.
-
#return_description ⇒ String
Submission’s result - from EOAS.
-
#tracking_number ⇒ String
SecureRandom generated tracking number sent with submission to EOAS.
-
#updated_at ⇒ Timestamp
Updated at date.
Method Summary
Methods inherited from ApplicationRecord
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Instance Attribute Details
#application_uuid ⇒ String
Returns submitted application’s uuid - from EOAS.
21 22 23 24 |
# File 'app/models/preneeds/preneed_submission.rb', line 21 class PreneedSubmission < ApplicationRecord validates :tracking_number, :return_description, presence: true validates :tracking_number, :application_uuid, uniqueness: true end |
#created_at ⇒ Timestamp
Returns created at date.
21 22 23 24 |
# File 'app/models/preneeds/preneed_submission.rb', line 21 class PreneedSubmission < ApplicationRecord validates :tracking_number, :return_description, presence: true validates :tracking_number, :application_uuid, uniqueness: true end |
#id ⇒ Integer
Returns auto-increment primary key.
21 22 23 24 |
# File 'app/models/preneeds/preneed_submission.rb', line 21 class PreneedSubmission < ApplicationRecord validates :tracking_number, :return_description, presence: true validates :tracking_number, :application_uuid, uniqueness: true end |
#return_code ⇒ Integer
Returns submission’s return code - from EOAS.
21 22 23 24 |
# File 'app/models/preneeds/preneed_submission.rb', line 21 class PreneedSubmission < ApplicationRecord validates :tracking_number, :return_description, presence: true validates :tracking_number, :application_uuid, uniqueness: true end |
#return_description ⇒ String
Returns submission’s result - from EOAS.
21 22 23 24 |
# File 'app/models/preneeds/preneed_submission.rb', line 21 class PreneedSubmission < ApplicationRecord validates :tracking_number, :return_description, presence: true validates :tracking_number, :application_uuid, uniqueness: true end |
#tracking_number ⇒ String
Returns SecureRandom generated tracking number sent with submission to EOAS.
21 22 23 24 |
# File 'app/models/preneeds/preneed_submission.rb', line 21 class PreneedSubmission < ApplicationRecord validates :tracking_number, :return_description, presence: true validates :tracking_number, :application_uuid, uniqueness: true end |
#updated_at ⇒ Timestamp
Returns updated at date.
21 22 23 24 |
# File 'app/models/preneeds/preneed_submission.rb', line 21 class PreneedSubmission < ApplicationRecord validates :tracking_number, :return_description, presence: true validates :tracking_number, :application_uuid, uniqueness: true end |