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.



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

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

Instance Method Details

#headers ⇒ Object



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

def headers
    @headers
end

#short_code ⇒ Object



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

def short_code
    @short_code_instance
end

#status_code ⇒ Object



369
370
371
# File 'lib/twilio-ruby/rest/api/v2010/account/short_code.rb', line 369

def status_code
    @status_code
end

#to_s ⇒ Object



373
374
375
# File 'lib/twilio-ruby/rest/api/v2010/account/short_code.rb', line 373

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