Class: Twilio::REST::FlexApi::V2::WebChannelsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::FlexApi::V2::WebChannelsInstance
- Defined in:
- lib/twilio-ruby/rest/flex_api/v2/web_channels.rb
Instance Method Summary collapse
-
#conversation_sid ⇒ String
The unique string representing the [Conversation resource](www.twilio.com/docs/conversations/api/conversation-resource) created.
-
#identity ⇒ String
The unique string representing the User created and should be authorized to participate in the Conversation.
-
#initialize(version, payload) ⇒ WebChannelsInstance
constructor
Initialize the WebChannelsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ WebChannelsInstance
Initialize the WebChannelsInstance
119 120 121 122 123 124 125 126 127 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 119 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'conversation_sid' => payload['conversation_sid'], 'identity' => payload['identity'], } end |
Instance Method Details
#conversation_sid ⇒ String
Returns The unique string representing the [Conversation resource](www.twilio.com/docs/conversations/api/conversation-resource) created.
132 133 134 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 132 def conversation_sid @properties['conversation_sid'] end |
#identity ⇒ String
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).
138 139 140 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 138 def identity @properties['identity'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
150 151 152 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 150 def inspect "<Twilio.FlexApi.V2.WebChannelsInstance>" end |
#to_s ⇒ Object
Provide a user friendly representation
144 145 146 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 144 def to_s "<Twilio.FlexApi.V2.WebChannelsInstance>" end |