class Twilio::REST::Trusthub::V1::EndUserTypeContext

Public Class Methods

new(version, sid) click to toggle source

Initialize the EndUserTypeContext @param [Version] version Version that contains the resource @param [String] sid The unique string that identifies the End-User Type

resource.

@return [EndUserTypeContext] EndUserTypeContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb
149 def initialize(version, sid)
150   super(version)
151 
152   # Path Solution
153   @solution = {sid: sid, }
154   @uri = "/EndUserTypes/#{@solution[:sid]}"
155 end

Public Instance Methods

fetch() click to toggle source

Fetch the EndUserTypeInstance @return [EndUserTypeInstance] Fetched EndUserTypeInstance

    # File lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb
160 def fetch
161   payload = @version.fetch('GET', @uri)
162 
163   EndUserTypeInstance.new(@version, payload, sid: @solution[:sid], )
164 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb
175 def inspect
176   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
177   "#<Twilio.Trusthub.V1.EndUserTypeContext #{context}>"
178 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb
168 def to_s
169   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
170   "#<Twilio.Trusthub.V1.EndUserTypeContext #{context}>"
171 end