module SupportTools
  class DownloadVOD < SupportTools::Base
    attributes :id, :vod_id

    self.primary_attribute = :id

    validates :id, presence: true

    def save
      return false unless valid?

      self.id = action
    end

    def action
      DownloadVODJob.create(id: id)
    end
  end
end
