class Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesEvaluationsContext

Public Class Methods

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

Initialize the CustomerProfilesEvaluationsContext @param [Version] version Version that contains the resource @param [String] customer_profile_sid The unique string that we created to

identify the customer_profile resource.

@param [String] sid The unique string that identifies the Evaluation resource. @return [CustomerProfilesEvaluationsContext] CustomerProfilesEvaluationsContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb
174 def initialize(version, customer_profile_sid, sid)
175   super(version)
176 
177   # Path Solution
178   @solution = {customer_profile_sid: customer_profile_sid, sid: sid, }
179   @uri = "/CustomerProfiles/#{@solution[:customer_profile_sid]}/Evaluations/#{@solution[:sid]}"
180 end

Public Instance Methods

fetch() click to toggle source

Fetch the CustomerProfilesEvaluationsInstance @return [CustomerProfilesEvaluationsInstance] Fetched CustomerProfilesEvaluationsInstance

    # File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb
185 def fetch
186   payload = @version.fetch('GET', @uri)
187 
188   CustomerProfilesEvaluationsInstance.new(
189       @version,
190       payload,
191       customer_profile_sid: @solution[:customer_profile_sid],
192       sid: @solution[:sid],
193   )
194 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb
205 def inspect
206   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
207   "#<Twilio.Trusthub.V1.CustomerProfilesEvaluationsContext #{context}>"
208 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb
198 def to_s
199   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
200   "#<Twilio.Trusthub.V1.CustomerProfilesEvaluationsContext #{context}>"
201 end