Class: Twilio::REST::Verify::V2::ServiceContext::RateLimitContext::BucketInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, bucket_instance, headers, status_code) ⇒ BucketInstanceMetadata

Initializes a new BucketInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}BucketInstance]

    bucket_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



412
413
414
415
# File 'lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb', line 412

def initialize(version, bucket_instance, headers, status_code)
    super(version, headers, status_code)
    @bucket_instance = bucket_instance
end

Instance Method Details

#bucketObject



417
418
419
# File 'lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb', line 417

def bucket
    @bucket_instance
end

#headersObject



421
422
423
# File 'lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb', line 421

def headers
    @headers
end

#status_codeObject



425
426
427
# File 'lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb', line 425

def status_code
    @status_code
end

#to_sObject



429
430
431
# File 'lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb', line 429

def to_s
  "<Twilio.Api.V2010.BucketInstanceMetadata status=#{@status_code}>"
end