Class: Twilio::REST::Voice::V1::DialingPermissionsList::SettingsContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Voice::V1::DialingPermissionsList::SettingsContext
- Defined in:
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.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
-
#fetch ⇒ SettingsInstance
Fetch the SettingsInstance.
-
#initialize(version) ⇒ SettingsContext
constructor
Initialize the SettingsContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#update(dialing_permissions_inheritance: :unset) ⇒ SettingsInstance
Update the SettingsInstance.
Constructor Details
#initialize(version) ⇒ SettingsContext
Initialize the SettingsContext
73 74 75 76 77 78 79 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb', line 73 def initialize(version) super(version) # Path Solution @solution = {} @uri = "/Settings" end |
Instance Method Details
#fetch ⇒ SettingsInstance
Fetch the SettingsInstance
84 85 86 87 88 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb', line 84 def fetch payload = @version.fetch('GET', @uri) SettingsInstance.new(@version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
112 113 114 115 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb', line 112 def inspect context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Voice.V1.SettingsContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
105 106 107 108 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb', line 105 def to_s context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Voice.V1.SettingsContext #{context}>" end |
#update(dialing_permissions_inheritance: :unset) ⇒ SettingsInstance
Update the SettingsInstance
95 96 97 98 99 100 101 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb', line 95 def update(dialing_permissions_inheritance: :unset) data = Twilio::Values.of({'DialingPermissionsInheritance' => , }) payload = @version.update('POST', @uri, data: data) SettingsInstance.new(@version, payload, ) end |