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

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

  • account_sid (String)

    The SID of the Account that created this HighriskSpecialPrefix resource.

  • sid (String)

    The SID of the Call resource to fetch.



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

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



190
191
192
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 190

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

#prefixString

Returns A prefix is a contiguous number range for a block of E.164 numbers that includes the E.164 assigned country code. For example, a North American Numbering Plan prefix like ‘+1510720` written like `+1(510) 720` matches all numbers inclusive from `+1(510) 720-0000` to `+1(510) 720-9999`.

Returns:

  • (String)

    A prefix is a contiguous number range for a block of E.164 numbers that includes the E.164 assigned country code. For example, a North American Numbering Plan prefix like ‘+1510720` written like `+1(510) 720` matches all numbers inclusive from `+1(510) 720-0000` to `+1(510) 720-9999`.



178
179
180
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 178

def prefix
    @properties['prefix']
end

#to_sObject

Provide a user friendly representation



184
185
186
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 184

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