class Twilio::REST::Trusthub::V1::TrustProductsContext::TrustProductsEvaluationsContext

Public Class Methods

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

Initialize the TrustProductsEvaluationsContext @param [Version] version Version that contains the resource @param [String] trust_product_sid The unique string that we created to identify

the trust_product resource.

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

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

Public Instance Methods

fetch() click to toggle source

Fetch the TrustProductsEvaluationsInstance @return [TrustProductsEvaluationsInstance] Fetched TrustProductsEvaluationsInstance

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb
185 def fetch
186   payload = @version.fetch('GET', @uri)
187 
188   TrustProductsEvaluationsInstance.new(
189       @version,
190       payload,
191       trust_product_sid: @solution[:trust_product_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/trust_products/trust_products_evaluations.rb
205 def inspect
206   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
207   "#<Twilio.Trusthub.V1.TrustProductsEvaluationsContext #{context}>"
208 end
to_s() click to toggle source

Provide a user friendly representation

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