Class: Twilio::REST::FlexApi::V1::InteractionContext::InteractionChannelContext::InteractionChannelInviteInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::FlexApi::V1::InteractionContext::InteractionChannelContext::InteractionChannelInviteInstance
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
Instance Method Summary collapse
-
#channel_sid ⇒ String
The Channel SID for this Invite.
-
#initialize(version, payload, interaction_sid: nil, channel_sid: nil) ⇒ InteractionChannelInviteInstance
constructor
Initialize the InteractionChannelInviteInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#interaction_sid ⇒ String
The Interaction SID for this Channel.
-
#routing ⇒ Hash
A JSON object representing the routing rules for the Interaction Channel.
-
#sid ⇒ String
The unique string created by Twilio to identify an Interaction Channel Invite resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #url ⇒ String
Constructor Details
#initialize(version, payload, interaction_sid: nil, channel_sid: nil) ⇒ InteractionChannelInviteInstance
Initialize the InteractionChannelInviteInstance
187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 187 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_sid ⇒ String
Returns The Channel SID for this Invite.
215 216 217 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 215 def channel_sid @properties['channel_sid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
239 240 241 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 239 def inspect "<Twilio.FlexApi.V1.InteractionChannelInviteInstance>" end |
#interaction_sid ⇒ String
Returns The Interaction SID for this Channel.
209 210 211 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 209 def interaction_sid @properties['interaction_sid'] end |
#routing ⇒ Hash
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).
221 222 223 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 221 def routing @properties['routing'] end |
#sid ⇒ String
Returns The unique string created by Twilio to identify an Interaction Channel Invite resource.
203 204 205 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 203 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
233 234 235 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 233 def to_s "<Twilio.FlexApi.V1.InteractionChannelInviteInstance>" end |
#url ⇒ String
227 228 229 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb', line 227 def url @properties['url'] end |