class Twilio::REST::Trusthub::V1::TrustProductsContext::TrustProductsChannelEndpointAssignmentContext

Public Class Methods

new(version, trust_product_sid, sid) click to toggle source

Initialize the TrustProductsChannelEndpointAssignmentContext @param [Version] version Version that contains the resource @param [String] trust_product_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 [TrustProductsChannelEndpointAssignmentContext] TrustProductsChannelEndpointAssignmentContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
198 def initialize(version, trust_product_sid, sid)
199   super(version)
200 
201   # Path Solution
202   @solution = {trust_product_sid: trust_product_sid, sid: sid, }
203   @uri = "/TrustProducts/#{@solution[:trust_product_sid]}/ChannelEndpointAssignments/#{@solution[:sid]}"
204 end

Public Instance Methods

delete() click to toggle source

Delete the TrustProductsChannelEndpointAssignmentInstance @return [Boolean] true if delete succeeds, false otherwise

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
223 def delete
224    @version.delete('DELETE', @uri)
225 end
fetch() click to toggle source

Fetch the TrustProductsChannelEndpointAssignmentInstance @return [TrustProductsChannelEndpointAssignmentInstance] Fetched TrustProductsChannelEndpointAssignmentInstance

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
209 def fetch
210   payload = @version.fetch('GET', @uri)
211 
212   TrustProductsChannelEndpointAssignmentInstance.new(
213       @version,
214       payload,
215       trust_product_sid: @solution[:trust_product_sid],
216       sid: @solution[:sid],
217   )
218 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
236 def inspect
237   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
238   "#<Twilio.Trusthub.V1.TrustProductsChannelEndpointAssignmentContext #{context}>"
239 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb
229 def to_s
230   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
231   "#<Twilio.Trusthub.V1.TrustProductsChannelEndpointAssignmentContext #{context}>"
232 end