Class: Twilio::REST::FlexApi::V2::WebChannelsInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/flex_api/v2/web_channels.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ WebChannelsInstance

Initialize the WebChannelsInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this WebChannels resource.

  • sid (String)

    The SID of the Call resource to fetch.



226
227
228
229
230
231
232
233
234
235
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 226

def initialize(version, payload )
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'conversation_sid' => payload['conversation_sid'],
        'identity' => payload['identity'],
    }
end

Instance Method Details

#conversation_sidString

Returns The unique string representing the [Conversation resource](www.twilio.com/docs/conversations/api/conversation-resource) created.

Returns:



240
241
242
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 240

def conversation_sid
    @properties['conversation_sid']
end

#identityString

Returns The unique string representing the User created and should be authorized to participate in the Conversation. For more details, see [User Identity & Access Tokens](www.twilio.com/docs/conversations/identity).

Returns:

  • (String)

    The unique string representing the User created and should be authorized to participate in the Conversation. For more details, see [User Identity & Access Tokens](www.twilio.com/docs/conversations/identity).



246
247
248
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 246

def identity
    @properties['identity']
end

#inspectObject

Provide a detailed, user friendly representation



258
259
260
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 258

def inspect
    "<Twilio.FlexApi.V2.WebChannelsInstance>"
end

#to_sObject

Provide a user friendly representation



252
253
254
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 252

def to_s
    "<Twilio.FlexApi.V2.WebChannelsInstance>"
end