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
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_sid ⇒ String
Returns 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 |
#inspect ⇒ Object
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_sid ⇒ String
Returns 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 |
#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).
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 |
#sid ⇒ String
Returns 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_s ⇒ Object
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 |
#url ⇒ 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 |