Class: TwilioRubyWrapper::Queue
- Inherits:
-
Object
- Object
- TwilioRubyWrapper::Queue
- Defined in:
- lib/twilio_ruby_wrapper/queue.rb
Instance Attribute Summary collapse
-
#account_sid ⇒ Object
readonly
Returns the value of attribute account_sid.
-
#average_wait_time ⇒ Object
readonly
Returns the value of attribute average_wait_time.
-
#current_size ⇒ Object
readonly
Returns the value of attribute current_size.
-
#date_created ⇒ Object
readonly
Returns the value of attribute date_created.
-
#date_updated ⇒ Object
readonly
Returns the value of attribute date_updated.
-
#friendly_name ⇒ Object
readonly
Returns the value of attribute friendly_name.
-
#max_size ⇒ Object
readonly
Returns the value of attribute max_size.
-
#queue_instance ⇒ Object
Returns the value of attribute queue_instance.
-
#sid ⇒ Object
readonly
Returns the value of attribute sid.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Class Method Summary collapse
Instance Method Summary collapse
- #calls ⇒ Object
-
#initialize(twilio_queue_instance) ⇒ Queue
constructor
A new instance of Queue.
Constructor Details
#initialize(twilio_queue_instance) ⇒ Queue
Returns a new instance of Queue.
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 12 def initialize(twilio_queue_instance) @twilio_client = Twilio::REST::Client.new(@@account_sid, @@auth_token) @queue_instance = twilio_queue_instance @sid = @queue_instance.sid @account_sid = @queue_instance.account_sid @friendly_name = @queue_instance.friendly_name @uri = @queue_instance.uri @current_size = @queue_instance.current_size @average_wait_time = @queue_instance.average_wait_time @max_size = @queue_instance.max_size @date_created = @queue_instance.date_created @date_updated = @queue_instance.date_updated end |
Instance Attribute Details
#account_sid ⇒ Object (readonly)
Returns the value of attribute account_sid.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def account_sid @account_sid end |
#average_wait_time ⇒ Object (readonly)
Returns the value of attribute average_wait_time.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def average_wait_time @average_wait_time end |
#current_size ⇒ Object (readonly)
Returns the value of attribute current_size.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def current_size @current_size end |
#date_created ⇒ Object (readonly)
Returns the value of attribute date_created.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def date_created @date_created end |
#date_updated ⇒ Object (readonly)
Returns the value of attribute date_updated.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def date_updated @date_updated end |
#friendly_name ⇒ Object (readonly)
Returns the value of attribute friendly_name.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def friendly_name @friendly_name end |
#max_size ⇒ Object (readonly)
Returns the value of attribute max_size.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def max_size @max_size end |
#queue_instance ⇒ Object
Returns the value of attribute queue_instance.
4 5 6 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 4 def queue_instance @queue_instance end |
#sid ⇒ Object (readonly)
Returns the value of attribute sid.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def sid @sid end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
3 4 5 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 3 def uri @uri end |
Class Method Details
.set_twilio_params(account_sid:, auth_token:) ⇒ Object
6 7 8 9 10 |
# File 'lib/twilio_ruby_wrapper/queue.rb', line 6 def self.set_twilio_params(account_sid:, auth_token:) @@account_sid = account_sid @@auth_token = auth_token true end |