Class: Twilio::REST::Lookups::V2::BucketInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/lookups/v2/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.



230
231
232
233
# File 'lib/twilio-ruby/rest/lookups/v2/bucket.rb', line 230

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

Instance Method Details

#bucketObject



235
236
237
# File 'lib/twilio-ruby/rest/lookups/v2/bucket.rb', line 235

def bucket
    @bucket_instance
end

#headersObject



239
240
241
# File 'lib/twilio-ruby/rest/lookups/v2/bucket.rb', line 239

def headers
    @headers
end

#status_codeObject



243
244
245
# File 'lib/twilio-ruby/rest/lookups/v2/bucket.rb', line 243

def status_code
    @status_code
end

#to_sObject



247
248
249
# File 'lib/twilio-ruby/rest/lookups/v2/bucket.rb', line 247

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