Class: Twilio::REST::FlexApi::V2::WebChannelsList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::FlexApi::V2::WebChannelsList
- Defined in:
- lib/twilio-ruby/rest/flex_api/v2/web_channels.rb
Instance Method Summary collapse
-
#create(address_sid: nil, chat_friendly_name: :unset, customer_friendly_name: :unset, pre_engagement_data: :unset) ⇒ WebChannelsInstance
Create the WebChannelsInstance.
-
#initialize(version) ⇒ WebChannelsList
constructor
Initialize the WebChannelsList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ WebChannelsList
Initialize the WebChannelsList
25 26 27 28 29 30 31 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 25 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/WebChats" end |
Instance Method Details
#create(address_sid: nil, chat_friendly_name: :unset, customer_friendly_name: :unset, pre_engagement_data: :unset) ⇒ WebChannelsInstance
Create the WebChannelsInstance
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 39 def create( address_sid: nil, chat_friendly_name: :unset, customer_friendly_name: :unset, pre_engagement_data: :unset ) data = Twilio::Values.of({ 'AddressSid' => address_sid, 'ChatFriendlyName' => chat_friendly_name, 'CustomerFriendlyName' => customer_friendly_name, 'PreEngagementData' => pre_engagement_data, }) payload = @version.create('POST', @uri, data: data) WebChannelsInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
64 65 66 |
# File 'lib/twilio-ruby/rest/flex_api/v2/web_channels.rb', line 64 def to_s '#<Twilio.FlexApi.V2.WebChannelsList>' end |