Class: Twilio::REST::Voice::V1::DialingPermissionsList::CountryContext::HighriskSpecialPrefixInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Voice::V1::DialingPermissionsList::CountryContext::HighriskSpecialPrefixInstance
- Defined in:
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
Instance Method Summary collapse
-
#initialize(version, payload, iso_code: nil) ⇒ HighriskSpecialPrefixInstance
constructor
Initialize the HighriskSpecialPrefixInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#prefix ⇒ String
A prefix is a contiguous number range for a block of E.164 numbers that includes the E.164 assigned country code.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, iso_code: nil) ⇒ HighriskSpecialPrefixInstance
Initialize the HighriskSpecialPrefixInstance
167 168 169 170 171 172 173 174 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 167 def initialize(version, payload , iso_code: nil) super(version) # Marshaled Properties @properties = { 'prefix' => payload['prefix'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
191 192 193 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 191 def inspect "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>" end |
#prefix ⇒ String
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`.
179 180 181 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 179 def prefix @properties['prefix'] end |
#to_s ⇒ Object
Provide a user friendly representation
185 186 187 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 185 def to_s "<Twilio.Voice.V1.HighriskSpecialPrefixInstance>" end |