Class: Twilio::REST::Api::V2010::AccountContext::ShortCodeInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/short_code.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, short_code_instance, headers, status_code) ⇒ ShortCodeInstanceMetadata

Initializes a new ShortCodeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ShortCodeInstance]

    short_code_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



348
349
350
351
# File 'lib/twilio-ruby/rest/api/v2010/account/short_code.rb', line 348

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

Instance Method Details

#headersObject



357
358
359
# File 'lib/twilio-ruby/rest/api/v2010/account/short_code.rb', line 357

def headers
    @headers
end

#short_codeObject



353
354
355
# File 'lib/twilio-ruby/rest/api/v2010/account/short_code.rb', line 353

def short_code
    @short_code_instance
end

#status_codeObject



361
362
363
# File 'lib/twilio-ruby/rest/api/v2010/account/short_code.rb', line 361

def status_code
    @status_code
end

#to_sObject



365
366
367
# File 'lib/twilio-ruby/rest/api/v2010/account/short_code.rb', line 365

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