Class: Twilio::REST::FlexApi::V1::InteractionContext::InteractionChannelContext::InteractionChannelInviteInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, interaction_sid: nil, channel_sid: nil) ⇒ InteractionChannelInviteInstance

Initialize the InteractionChannelInviteInstance

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 InteractionChannelInvite resource.

  • sid (String)

    The SID of the Call resource to fetch.



197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 197

def initialize(version, payload , interaction_sid: nil, channel_sid: nil)
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'sid' => payload['sid'],
        'interaction_sid' => payload['interaction_sid'],
        'channel_sid' => payload['channel_sid'],
        'routing' => payload['routing'],
        'url' => payload['url'],
    }
end

Instance Method Details

#channel_sidString

Returns The Channel SID for this Invite.

Returns:

  • (String)

    The Channel SID for this Invite.



225
226
227
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 225

def channel_sid
    @properties['channel_sid']
end

#inspectObject

Provide a detailed, user friendly representation



249
250
251
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 249

def inspect
    "<Twilio.FlexApi.V1.InteractionChannelInviteInstance>"
end

#interaction_sidString

Returns The Interaction SID for this Channel.

Returns:

  • (String)

    The Interaction SID for this Channel.



219
220
221
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 219

def interaction_sid
    @properties['interaction_sid']
end

#routingHash

Returns A JSON object representing the routing rules for the Interaction Channel. See [Outbound SMS Example](www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#agent-initiated-outbound-interactions) for an example Routing object. The Interactions resource uses TaskRouter for all routing functionality. All attributes in the Routing object on your Interaction request body are added “as is” to the task. For a list of known attributes consumed by the Flex UI and/or Flex Insights, see [Known Task Attributes](www.twilio.com/docs/flex/developer/conversations/interactions-api#task-attributes).

Returns:



231
232
233
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 231

def routing
    @properties['routing']
end

#sidString

Returns The unique string created by Twilio to identify an Interaction Channel Invite resource.

Returns:

  • (String)

    The unique string created by Twilio to identify an Interaction Channel Invite resource.



213
214
215
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 213

def sid
    @properties['sid']
end

#to_sObject

Provide a user friendly representation



243
244
245
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 243

def to_s
    "<Twilio.FlexApi.V1.InteractionChannelInviteInstance>"
end

#urlString

Returns:

  • (String)


237
238
239
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 237

def url
    @properties['url']
end