provider.rb - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
 (HTM) git clone git://jay.scot/warvox
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
       provider.rb (687B)
       ---
            1 # == Schema Information
            2 #
            3 # Table name: providers
            4 #
            5 #  id         :integer          not null, primary key
            6 #  created_at :datetime
            7 #  updated_at :datetime
            8 #  name       :text             not null
            9 #  host       :text             not null
           10 #  port       :integer          not null
           11 #  user       :text
           12 #  pass       :text
           13 #  lines      :integer          default(1), not null
           14 #  enabled    :boolean          default(TRUE)
           15 #
           16 
           17 class Provider < ApplicationRecord
           18   has_many :dial_results
           19 
           20   validates_presence_of :name, :host, :port, :user, :pass, :lines
           21   validates_numericality_of :port, less_than: 65536, greater_than: 0
           22   validates_numericality_of :lines, less_than: 255, greater_than: 0
           23 end