Class: Pbx::QueueMember

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#interfaceObject (readonly)

Returns the value of attribute interface

Returns:

  • (Object)

    the current value of interface



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

def interface
  @interface
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#pausedObject (readonly)

Returns the value of attribute paused

Returns:

  • (Object)

    the current value of paused



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

def paused
  @paused
end

#queueObject (readonly)

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of queue



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

def queue
  @queue
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
end

Instance Method Details

#available?Boolean

Returns:

  • (Boolean)


5
# File 'lib/pbx/queue_member.rb', line 5

def available? = status == "not_in_use" && !paused