class Avaya::HuntList

Attributes

directory[R]

Public Class Methods

get() click to toggle source
# File lib/avaya/hunt_list.rb, line 9
def self.get
  hunt_list = self.new
  hunt_list.get
end
new() click to toggle source
# File lib/avaya/hunt_list.rb, line 5
def initialize
  @directory = Avaya::TFTP.read(:hunt_list)
end

Public Instance Methods

get() click to toggle source
# File lib/avaya/hunt_list.rb, line 14
def get
  list= []
  directory.each do |row|
    row = row.split(",")
    list << {
        name:        row[0],
        ext:         row[1],
        queue:       row[2],
        voice_mails: row[7],
        hunt_id:     row[9]
    }
  end

  list

end