class Discontinue < Event
  validates :company, presence: true
  validates :priority_type, presence: true

  def to_xml
"    <discontinue>
      <company>#{company}</company>
      <to>#{destination}</to>
      <from>#{origin}</from>
      <priority>#{priority_type}</priority>
    </discontinue>
"
  end
end
