lib/twilio-ruby/rest/api/v2010/account/queue.rb in twilio-ruby-5.35.0 vs lib/twilio-ruby/rest/api/v2010/account/queue.rb in twilio-ruby-5.36.0

- old
+ new

@@ -278,19 +278,19 @@ def initialize(version, payload, account_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { + 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), + 'current_size' => payload['current_size'].to_i, + 'friendly_name' => payload['friendly_name'], + 'uri' => payload['uri'], 'account_sid' => payload['account_sid'], 'average_wait_time' => payload['average_wait_time'].to_i, - 'current_size' => payload['current_size'].to_i, + 'sid' => payload['sid'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), - 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), - 'friendly_name' => payload['friendly_name'], 'max_size' => payload['max_size'].to_i, - 'sid' => payload['sid'], - 'uri' => payload['uri'], } # Context @instance_context = nil @params = {'account_sid' => account_sid, 'sid' => sid || @properties['sid'], } @@ -306,60 +306,60 @@ end @instance_context end ## - # @return [String] The SID of the Account that created this resource - def account_sid - @properties['account_sid'] + # @return [Time] The RFC 2822 date and time in GMT that this resource was last updated + def date_updated + @properties['date_updated'] end ## - # @return [String] Average wait time of members in the queue - def average_wait_time - @properties['average_wait_time'] - end - - ## # @return [String] The number of calls currently in the queue. def current_size @properties['current_size'] end ## - # @return [Time] The RFC 2822 date and time in GMT that this resource was created - def date_created - @properties['date_created'] + # @return [String] A string that you assigned to describe this resource + def friendly_name + @properties['friendly_name'] end ## - # @return [Time] The RFC 2822 date and time in GMT that this resource was last updated - def date_updated - @properties['date_updated'] + # @return [String] The URI of this resource, relative to `https://api.twilio.com` + def uri + @properties['uri'] end ## - # @return [String] A string that you assigned to describe this resource - def friendly_name - @properties['friendly_name'] + # @return [String] The SID of the Account that created this resource + def account_sid + @properties['account_sid'] end ## - # @return [String] The max number of calls allowed in the queue - def max_size - @properties['max_size'] + # @return [String] Average wait time of members in the queue + def average_wait_time + @properties['average_wait_time'] end ## # @return [String] The unique string that identifies this resource def sid @properties['sid'] end ## - # @return [String] The URI of this resource, relative to `https://api.twilio.com` - def uri - @properties['uri'] + # @return [Time] The RFC 2822 date and time in GMT that this resource was created + def date_created + @properties['date_created'] + end + + ## + # @return [String] The max number of calls allowed in the queue + def max_size + @properties['max_size'] end ## # Fetch a QueueInstance # @return [QueueInstance] Fetched QueueInstance \ No newline at end of file