Class: Pbx::QueueMember
- Inherits:
-
Data
- Object
- Data
- Pbx::QueueMember
- Defined in:
- lib/pbx/queue_member.rb
Instance Attribute Summary collapse
-
#interface ⇒ Object
readonly
Returns the value of attribute interface.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#paused ⇒ Object
readonly
Returns the value of attribute paused.
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#interface ⇒ Object (readonly)
Returns the value of attribute interface
4 5 6 |
# File 'lib/pbx/queue_member.rb', line 4 def interface @interface end |
#name ⇒ Object (readonly)
Returns the value of attribute name
4 5 6 |
# File 'lib/pbx/queue_member.rb', line 4 def name @name end |
#paused ⇒ Object (readonly)
Returns the value of attribute paused
4 5 6 |
# File 'lib/pbx/queue_member.rb', line 4 def paused @paused end |
#queue ⇒ Object (readonly)
Returns the value of attribute queue
4 5 6 |
# File 'lib/pbx/queue_member.rb', line 4 def queue @queue end |
#status ⇒ Object (readonly)
Returns the value of attribute status
4 5 6 |
# File 'lib/pbx/queue_member.rb', line 4 def status @status end |
Instance Method Details
#available? ⇒ Boolean
5 |
# File 'lib/pbx/queue_member.rb', line 5 def available? = status == "not_in_use" && !paused |