class Avaya::HuntInfo
Attributes
members[R]
Public Class Methods
get(group)
click to toggle source
# File lib/avaya/hunt_info.rb, line 9 def self.get group hunt_list = self.new(group) hunt_list.get end
new(group)
click to toggle source
# File lib/avaya/hunt_info.rb, line 5 def initialize(group) @members = Avaya::TFTP.read(:hunt_info, group) end
Public Instance Methods
get()
click to toggle source
# File lib/avaya/hunt_info.rb, line 15 def get list= [] members.each do |row| list << { ext: row.sub("*", ""), active: ((row.include? "*") == false) } end list end