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

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb

Overview

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 [email protected]

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, iso_code: nil) ⇒ HighriskSpecialPrefixInstance

Initialize the HighriskSpecialPrefixInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • iso_code (String) (defaults to: nil)

160
161
162
163
164
165
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 160

def initialize(version, payload, iso_code: nil)
  super(version)

  # Marshaled Properties
  @properties = {'prefix' => payload['prefix'], }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation


181
182
183
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 181

def inspect
  "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
end

#prefixString

Returns A prefix that includes the E.164 assigned country code.

Returns:

  • (String)

    A prefix that includes the E.164 assigned country code


169
170
171
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 169

def prefix
  @properties['prefix']
end

#to_sObject

Provide a user friendly representation


175
176
177
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 175

def to_s
  "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
end