Sha256: f04bca2875cff3c5d33b0c115ffe1cb74f4a838a5420777a4c4587d88637f43a

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /
#
# frozen_string_literal: true

module Twilio
  module REST
    class FlexApi
      class V1 < Version
        ##
        # Initialize the V1 version of FlexApi
        def initialize(domain)
          super
          @version = 'v1'
          @flex_flow = nil
          @configuration = nil
        end

        ##
        # @param [String] sid The unique ID of the FlexFlow
        # @return [Twilio::REST::Flex_api::V1::FlexFlowContext] if sid was passed.
        # @return [Twilio::REST::Flex_api::V1::FlexFlowList]
        def flex_flow(sid=:unset)
          if sid.nil?
            raise ArgumentError, 'sid cannot be nil'
          elsif sid == :unset
            @flex_flow ||= FlexFlowList.new self
          else
            FlexFlowContext.new(self, sid)
          end
        end

        ##
        # @return [Twilio::REST::Flex_api::V1::ConfigurationContext]
        def configuration
          @configuration ||= ConfigurationContext.new self
        end

        ##
        # Provide a user friendly representation
        def to_s
          '<Twilio::REST::FlexApi::V1>'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-5.25.3 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.25.1 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.25.0 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.24.0 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.23.1 lib/twilio-ruby/rest/flex_api/v1.rb