class Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesChannelEndpointAssignmentContext
Public Class Methods
Initialize the CustomerProfilesChannelEndpointAssignmentContext
@param [Version] version Version
that contains the resource @param [String] customer_profile_sid The unique string that we created to
identify the CustomerProfile resource.
@param [String] sid The unique string that we created to identify the resource. @return [CustomerProfilesChannelEndpointAssignmentContext] CustomerProfilesChannelEndpointAssignmentContext
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb 198 def initialize(version, customer_profile_sid, sid) 199 super(version) 200 201 # Path Solution 202 @solution = {customer_profile_sid: customer_profile_sid, sid: sid, } 203 @uri = "/CustomerProfiles/#{@solution[:customer_profile_sid]}/ChannelEndpointAssignments/#{@solution[:sid]}" 204 end
Public Instance Methods
Delete the CustomerProfilesChannelEndpointAssignmentInstance
@return [Boolean] true if delete succeeds, false otherwise
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb 223 def delete 224 @version.delete('DELETE', @uri) 225 end
Fetch the CustomerProfilesChannelEndpointAssignmentInstance
@return [CustomerProfilesChannelEndpointAssignmentInstance] Fetched CustomerProfilesChannelEndpointAssignmentInstance
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb 209 def fetch 210 payload = @version.fetch('GET', @uri) 211 212 CustomerProfilesChannelEndpointAssignmentInstance.new( 213 @version, 214 payload, 215 customer_profile_sid: @solution[:customer_profile_sid], 216 sid: @solution[:sid], 217 ) 218 end
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb 236 def inspect 237 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 238 "#<Twilio.Trusthub.V1.CustomerProfilesChannelEndpointAssignmentContext #{context}>" 239 end
Provide a user friendly representation
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb 229 def to_s 230 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 231 "#<Twilio.Trusthub.V1.CustomerProfilesChannelEndpointAssignmentContext #{context}>" 232 end