class Twilio::REST::FlexApi

Public Class Methods

new(twilio) click to toggle source

Initialize the FlexApi Domain

Calls superclass method Twilio::REST::Domain::new
   # File lib/twilio-ruby/rest/flex_api.rb
14 def initialize(twilio)
15   super
16 
17   @base_url = 'https://flex-api.twilio.com'
18   @host = 'flex-api.twilio.com'
19   @port = 443
20 
21   # Versions
22   @v1 = nil
23 end

Public Instance Methods

channel(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the Channel

resource.

@return [Twilio::REST::Flex_api::V1::ChannelInstance] if sid was passed. @return [Twilio::REST::Flex_api::V1::ChannelList]

   # File lib/twilio-ruby/rest/flex_api.rb
36 def channel(sid=:unset)
37   self.v1.channel(sid)
38 end
configuration() click to toggle source

@return [Twilio::REST::Flex_api::V1::ConfigurationInstance]

   # File lib/twilio-ruby/rest/flex_api.rb
42 def configuration
43   self.v1.configuration()
44 end
flex_flow(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the Flex Flow

resource.

@return [Twilio::REST::Flex_api::V1::FlexFlowInstance] if sid was passed. @return [Twilio::REST::Flex_api::V1::FlexFlowList]

   # File lib/twilio-ruby/rest/flex_api.rb
51 def flex_flow(sid=:unset)
52   self.v1.flex_flow(sid)
53 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/flex_api.rb
66 def to_s
67   '#<Twilio::REST::FlexApi>'
68 end
v1() click to toggle source

Version v1 of flex_api

   # File lib/twilio-ruby/rest/flex_api.rb
27 def v1
28   @v1 ||= V1.new self
29 end
web_channel(sid=:unset) click to toggle source

@param [String] sid The unique string that we created to identify the WebChannel

resource.

@return [Twilio::REST::Flex_api::V1::WebChannelInstance] if sid was passed. @return [Twilio::REST::Flex_api::V1::WebChannelList]

   # File lib/twilio-ruby/rest/flex_api.rb
60 def web_channel(sid=:unset)
61   self.v1.web_channel(sid)
62 end