Method: Twilio::REST::Chat::V2::ServiceContext::UserContext#initialize

Defined in:
lib/twilio-ruby/rest/chat/v2/service/user.rb

#initialize(version, service_sid, sid) ⇒ UserContext

Initialize the UserContext

Parameters:

  • version (Version)

    Version that contains the resource

  • service_sid (String)

    The SID of the [Service](www.twilio.com/docs/chat/rest/service-resource) to update the User resource in.

  • sid (String)

    The SID of the User resource to update. This value can be either the sid or the identity of the User resource to update.



242
243
244
245
246
247
248
249
250
251
252
253
# File 'lib/twilio-ruby/rest/chat/v2/service/user.rb', line 242

def initialize(version, service_sid, sid)
    super(version)
    

    # Path Solution
    @solution = { service_sid: service_sid, sid: sid,  }
    @uri = "/Services/#{@solution[:service_sid]}/Users/#{@solution[:sid]}"

    # Dependents
    @user_channels = nil
    @user_bindings = nil
end