podemos-info/census

View on GitHub
app/forms/people/cancellation_form.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

# The form object that handles the data for a person
module People
  class CancellationForm < Form
    include ::HasPerson

    mimic :procedures_cancellation

    attribute :channel, String
    attribute :reason, String

    validates :channel, presence: true
  end
end