class Twilio::REST::Trusthub::V1::TrustProductsContext::TrustProductsEntityAssignmentsContext

Public Class Methods

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

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

the TrustProduct resource.

@param [String] sid The unique string that we created to identify the Identity

resource.

@return [TrustProductsEntityAssignmentsContext] TrustProductsEntityAssignmentsContext

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

Public Instance Methods

delete() click to toggle source

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

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb
200 def delete
201    @version.delete('DELETE', @uri)
202 end
fetch() click to toggle source

Fetch the TrustProductsEntityAssignmentsInstance @return [TrustProductsEntityAssignmentsInstance] Fetched TrustProductsEntityAssignmentsInstance

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb
186 def fetch
187   payload = @version.fetch('GET', @uri)
188 
189   TrustProductsEntityAssignmentsInstance.new(
190       @version,
191       payload,
192       trust_product_sid: @solution[:trust_product_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/trust_products/trust_products_entity_assignments.rb
213 def inspect
214   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
215   "#<Twilio.Trusthub.V1.TrustProductsEntityAssignmentsContext #{context}>"
216 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb
206 def to_s
207   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
208   "#<Twilio.Trusthub.V1.TrustProductsEntityAssignmentsContext #{context}>"
209 end