Sha256: 4d8f675050f1d7abe96790a66b82e0db90eaa8ac4eb615bf87e1f09ecb5394bd

Contents?: true

Size: 1.21 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
twilio-ruby-5.23.0 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.22.3 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.22.2 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.22.1 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.22.0 lib/twilio-ruby/rest/flex_api/v1.rb
twilio-ruby-5.21.2 lib/twilio-ruby/rest/flex_api/v1.rb