Class: Forms::SubmissionStatuses::Dataset
- Inherits:
-
Object
- Object
- Forms::SubmissionStatuses::Dataset
- Defined in:
- lib/forms/submission_statuses/dataset.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#intake_statuses ⇒ Object
Returns the value of attribute intake_statuses.
-
#submissions ⇒ Object
Returns the value of attribute submissions.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
8 9 10 |
# File 'lib/forms/submission_statuses/dataset.rb', line 8 def errors @errors end |
#intake_statuses ⇒ Object
Returns the value of attribute intake_statuses.
8 9 10 |
# File 'lib/forms/submission_statuses/dataset.rb', line 8 def intake_statuses @intake_statuses end |
#submissions ⇒ Object
Returns the value of attribute submissions.
8 9 10 |
# File 'lib/forms/submission_statuses/dataset.rb', line 8 def submissions @submissions end |
Instance Method Details
#error_status ⇒ Object
22 23 24 |
# File 'lib/forms/submission_statuses/dataset.rb', line 22 def error_status @errors.first[:status] if errors? end |
#errors? ⇒ Boolean
18 19 20 |
# File 'lib/forms/submission_statuses/dataset.rb', line 18 def errors? @errors.present? end |
#intake_statuses? ⇒ Boolean
14 15 16 |
# File 'lib/forms/submission_statuses/dataset.rb', line 14 def intake_statuses? @intake_statuses.present? end |
#submissions? ⇒ Boolean
10 11 12 |
# File 'lib/forms/submission_statuses/dataset.rb', line 10 def submissions? @submissions.present? end |