Class: Preneeds::PreneedSubmission

Inherits:
ApplicationRecord show all
Defined in:
app/models/preneeds/preneed_submission.rb

Overview

A record to track a BurialForm form submission.

Instance Attribute Summary collapse

Method Summary

Methods inherited from ApplicationRecord

descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?

Instance Attribute Details

#application_uuidString

Returns submitted application’s uuid - from EOAS.

Returns:

  • (String)

    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_atTimestamp

Returns created at date.

Returns:

  • (Timestamp)

    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

#idInteger

Returns auto-increment primary key.

Returns:

  • (Integer)

    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_codeInteger

Returns submission’s return code - from EOAS.

Returns:

  • (Integer)

    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_descriptionString

Returns submission’s result - from EOAS.

Returns:

  • (String)

    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_numberString

Returns SecureRandom generated tracking number sent with submission to EOAS.

Returns:

  • (String)

    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_atTimestamp

Returns updated at date.

Returns:

  • (Timestamp)

    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