Class: Twilio::REST::Preview::Permissions::VoicePermissionList::CountryContext::HighriskSpecialPrefixInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/preview/permissions/voice_permission/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, parent_iso_code: nil) ⇒ HighriskSpecialPrefixInstance

Initialize the HighriskSpecialPrefixInstance

Parameters:



162
163
164
165
166
167
# File 'lib/twilio-ruby/rest/preview/permissions/voice_permission/country/highrisk_special_prefix.rb', line 162

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

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

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



183
184
185
# File 'lib/twilio-ruby/rest/preview/permissions/voice_permission/country/highrisk_special_prefix.rb', line 183

def inspect
  "<Twilio.Preview.Permissions.HighriskSpecialPrefixInstance>"
end

#prefixString

Returns prefix string of phone number.

Returns:

  • (String)

    prefix string of phone number



171
172
173
# File 'lib/twilio-ruby/rest/preview/permissions/voice_permission/country/highrisk_special_prefix.rb', line 171

def prefix
  @properties['prefix']
end

#to_sObject

Provide a user friendly representation



177
178
179
# File 'lib/twilio-ruby/rest/preview/permissions/voice_permission/country/highrisk_special_prefix.rb', line 177

def to_s
  "<Twilio.Preview.Permissions.HighriskSpecialPrefixInstance>"
end