Class: Forms::SubmissionStatuses::Dataset

Inherits:
Object
  • Object
show all
Defined in:
lib/forms/submission_statuses/dataset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors.



8
9
10
# File 'lib/forms/submission_statuses/dataset.rb', line 8

def errors
  @errors
end

#intake_statusesObject

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

#submissionsObject

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_statusObject



22
23
24
# File 'lib/forms/submission_statuses/dataset.rb', line 22

def error_status
  @errors.first[:status] if errors?
end

#errors?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/forms/submission_statuses/dataset.rb', line 18

def errors?
  @errors.present?
end

#intake_statuses?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/forms/submission_statuses/dataset.rb', line 14

def intake_statuses?
  @intake_statuses.present?
end

#submissions?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/forms/submission_statuses/dataset.rb', line 10

def submissions?
  @submissions.present?
end