class Twilio::REST::Voice::V1::DialingPermissionsList::CountryContext::HighriskSpecialPrefixInstance

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

Public Class Methods

new(version, payload, iso_code: nil) click to toggle source

Initialize the HighriskSpecialPrefixInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] iso_code The {ISO country

code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2].

@return [HighriskSpecialPrefixInstance] HighriskSpecialPrefixInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
160 def initialize(version, payload, iso_code: nil)
161   super(version)
162 
163   # Marshaled Properties
164   @properties = {'prefix' => payload['prefix'], }
165 end

Public Instance Methods

inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
181 def inspect
182   "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
183 end
prefix() click to toggle source

@return [String] A prefix that includes the E.164 assigned country code

    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
169 def prefix
170   @properties['prefix']
171 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
175 def to_s
176   "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
177 end