Sha256: 5af1a9c341c80648752d7b9764f84295308d4c281678cb65fe61c97f5a160e34

Contents?: true

Size: 1.09 KB

Versions: 12

Compression:

Stored size: 1.09 KB

Contents

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

module Twilio
  module REST
    class Preview
      class DeployedDevices < Version
        ##
        # Initialize the DeployedDevices version of Preview
        def initialize(domain)
          super
          @version = 'DeployedDevices'
          @fleets = nil
        end

        ##
        # @param [String] sid Provides a 34 character string that uniquely identifies the
        #   requested Fleet resource.
        # @return [Twilio::REST::Preview::DeployedDevices::FleetInstance] if sid was passed.
        # @return [Twilio::REST::Preview::DeployedDevices::FleetList]
        def fleets(sid=:unset)
          if sid.nil?
            raise ArgumentError, 'sid cannot be nil'
          elsif sid == :unset
            @fleets ||= FleetList.new self
          else
            FleetContext.new(self, sid)
          end
        end

        ##
        # Provide a user friendly representation
        def to_s
          '<Twilio::REST::Preview::DeployedDevices>'
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
twilio-ruby-5.4.4 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.4.3 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.4.2 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.4.1 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.4.0 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.3.1 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.3.0 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.2.3 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.2.2 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.2.1 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.2.0 lib/twilio-ruby/rest/preview/deployed_devices.rb
twilio-ruby-5.1.2 lib/twilio-ruby/rest/preview/deployed_devices.rb