class Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesEntityAssignmentsContext
Public Class Methods
new(version, customer_profile_sid, sid)
click to toggle source
Initialize the CustomerProfilesEntityAssignmentsContext
@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 Identity
resource.
@return [CustomerProfilesEntityAssignmentsContext] CustomerProfilesEntityAssignmentsContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb 175 def initialize(version, customer_profile_sid, sid) 176 super(version) 177 178 # Path Solution 179 @solution = {customer_profile_sid: customer_profile_sid, sid: sid, } 180 @uri = "/CustomerProfiles/#{@solution[:customer_profile_sid]}/EntityAssignments/#{@solution[:sid]}" 181 end
Public Instance Methods
delete()
click to toggle source
Delete the CustomerProfilesEntityAssignmentsInstance
@return [Boolean] true if delete succeeds, false otherwise
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb 200 def delete 201 @version.delete('DELETE', @uri) 202 end
fetch()
click to toggle source
Fetch the CustomerProfilesEntityAssignmentsInstance
@return [CustomerProfilesEntityAssignmentsInstance] Fetched CustomerProfilesEntityAssignmentsInstance
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb 186 def fetch 187 payload = @version.fetch('GET', @uri) 188 189 CustomerProfilesEntityAssignmentsInstance.new( 190 @version, 191 payload, 192 customer_profile_sid: @solution[:customer_profile_sid], 193 sid: @solution[:sid], 194 ) 195 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb 213 def inspect 214 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 215 "#<Twilio.Trusthub.V1.CustomerProfilesEntityAssignmentsContext #{context}>" 216 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb 206 def to_s 207 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 208 "#<Twilio.Trusthub.V1.CustomerProfilesEntityAssignmentsContext #{context}>" 209 end