Class: Twilio::REST::Voice::V1::DialingPermissionsList::CountryInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, country_instance, headers, status_code) ⇒ CountryInstanceMetadata

Initializes a new CountryInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}CountryInstance]

    country_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



299
300
301
302
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 299

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

Instance Method Details

#countryObject



304
305
306
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 304

def country
    @country_instance
end

#headersObject



308
309
310
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 308

def headers
    @headers
end

#status_codeObject



312
313
314
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 312

def status_code
    @status_code
end

#to_sObject



316
317
318
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb', line 316

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