Class: Preneeds::ReceiveApplication
- Inherits:
-
Common::Base
- Object
- Common::Base
- Preneeds::ReceiveApplication
- Defined in:
- app/models/preneeds/receive_application.rb
Overview
Objects used to model pertinent data about a submitted BurialForm form.
Instance Attribute Summary collapse
-
#application_uuid ⇒ String
Submitted application’s uuid - from EOAS.
-
#return_code ⇒ Integer
Submission’s return code - from EOAS.
-
#return_description ⇒ String
Submission’s result - from EOAS.
-
#submitted_at ⇒ Time
Current time.
-
#tracking_number ⇒ String
SecureRandom generated tracking number sent with submission to EOAS.
Attributes inherited from Common::Base
Instance Method Summary collapse
-
#current_time ⇒ Time
Current time.
-
#receive_application_id ⇒ Object
Alias for #tracking_number.
Methods inherited from Common::Base
#changed, #changed?, #changes, default_sort, filterable_attributes, #initialize, max_per_page, per_page, sortable_attributes
Constructor Details
This class inherits a constructor from Common::Base
Instance Attribute Details
#application_uuid ⇒ String
Returns submitted application’s uuid - from EOAS.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/models/preneeds/receive_application.rb', line 18 class ReceiveApplication < Common::Base attribute :tracking_number, String attribute :return_code, Integer attribute :application_uuid, String attribute :return_description, String attribute :submitted_at, Time, default: :current_time # Alias for #tracking_number # def receive_application_id tracking_number end # @return [Time] current time # def current_time Time.zone.now end end |
#return_code ⇒ Integer
Returns submission’s return code - from EOAS.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/models/preneeds/receive_application.rb', line 18 class ReceiveApplication < Common::Base attribute :tracking_number, String attribute :return_code, Integer attribute :application_uuid, String attribute :return_description, String attribute :submitted_at, Time, default: :current_time # Alias for #tracking_number # def receive_application_id tracking_number end # @return [Time] current time # def current_time Time.zone.now end end |
#return_description ⇒ String
Returns submission’s result - from EOAS.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/models/preneeds/receive_application.rb', line 18 class ReceiveApplication < Common::Base attribute :tracking_number, String attribute :return_code, Integer attribute :application_uuid, String attribute :return_description, String attribute :submitted_at, Time, default: :current_time # Alias for #tracking_number # def receive_application_id tracking_number end # @return [Time] current time # def current_time Time.zone.now end end |
#submitted_at ⇒ Time
Returns current time.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/models/preneeds/receive_application.rb', line 18 class ReceiveApplication < Common::Base attribute :tracking_number, String attribute :return_code, Integer attribute :application_uuid, String attribute :return_description, String attribute :submitted_at, Time, default: :current_time # Alias for #tracking_number # def receive_application_id tracking_number end # @return [Time] current time # def current_time Time.zone.now end end |
#tracking_number ⇒ String
Returns SecureRandom generated tracking number sent with submission to EOAS.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'app/models/preneeds/receive_application.rb', line 18 class ReceiveApplication < Common::Base attribute :tracking_number, String attribute :return_code, Integer attribute :application_uuid, String attribute :return_description, String attribute :submitted_at, Time, default: :current_time # Alias for #tracking_number # def receive_application_id tracking_number end # @return [Time] current time # def current_time Time.zone.now end end |
Instance Method Details
#current_time ⇒ Time
Returns current time.
33 34 35 |
# File 'app/models/preneeds/receive_application.rb', line 33 def current_time Time.zone.now end |
#receive_application_id ⇒ Object
Alias for #tracking_number
27 28 29 |
# File 'app/models/preneeds/receive_application.rb', line 27 def receive_application_id tracking_number end |