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

  • interaction_sid (String) (defaults to: nil)

    The Interaction SID for this Channel.

  • channel_sid (String) (defaults to: nil)

    The Channel SID for this Invite.


176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 176

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


203
204
205
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 203

def channel_sid
  @properties['channel_sid']
end

#inspectObject

Provide a detailed, user friendly representation


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

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

#interaction_sidString

Returns The Interaction SID for this Channel.

Returns:

  • (String)

    The Interaction SID for this Channel


197
198
199
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 197

def interaction_sid
  @properties['interaction_sid']
end

#routingHash

Returns A JSON object representing the routing rules for the Interaction Channel.

Returns:

  • (Hash)

    A JSON object representing the routing rules for the Interaction Channel


209
210
211
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 209

def routing
  @properties['routing']
end

#sidString

Returns The unique string that identifies the resource.

Returns:

  • (String)

    The unique string that identifies the resource


191
192
193
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 191

def sid
  @properties['sid']
end

#to_sObject

Provide a user friendly representation


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

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

#urlString

Returns The url.

Returns:

  • (String)

    The url


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

def url
  @properties['url']
end