Class: Pbx::CallQueue

Inherits:
Data
  • Object
show all
Defined in:
lib/pbx/call_queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, strategy:, calls_waiting:, completed:, abandoned:, holdtime:, members:, last_holdtime: nil) ⇒ CallQueue

Returns a new instance of CallQueue.



5
6
7
# File 'lib/pbx/call_queue.rb', line 5

def initialize(name:, strategy:, calls_waiting:, completed:, abandoned:, holdtime:, members:, last_holdtime: nil)
  super
end

Instance Attribute Details

#abandonedObject (readonly)

Returns the value of attribute abandoned

Returns:

  • (Object)

    the current value of abandoned



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def abandoned
  @abandoned
end

#calls_waitingObject (readonly)

Returns the value of attribute calls_waiting

Returns:

  • (Object)

    the current value of calls_waiting



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def calls_waiting
  @calls_waiting
end

#completedObject (readonly)

Returns the value of attribute completed

Returns:

  • (Object)

    the current value of completed



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def completed
  @completed
end

#holdtimeObject (readonly)

Returns the value of attribute holdtime

Returns:

  • (Object)

    the current value of holdtime



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def holdtime
  @holdtime
end

#last_holdtimeObject (readonly)

Returns the value of attribute last_holdtime

Returns:

  • (Object)

    the current value of last_holdtime



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def last_holdtime
  @last_holdtime
end

#membersObject (readonly)

Returns the value of attribute members

Returns:

  • (Object)

    the current value of members



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def members
  @members
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def name
  @name
end

#strategyObject (readonly)

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



4
5
6
# File 'lib/pbx/call_queue.rb', line 4

def strategy
  @strategy
end