Class: Twilio::REST::Preview::DeployedDevices

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/preview/deployed_devices.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb,
lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb

Defined Under Namespace

Classes: FleetContext, FleetInstance, FleetList, FleetPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ DeployedDevices

Initialize the DeployedDevices version of Preview



21
22
23
24
25
# File 'lib/twilio-ruby/rest/preview/deployed_devices.rb', line 21

def initialize(domain)
    super
    @version = 'DeployedDevices'
    @fleets = nil
end

Instance Method Details

#fleets(sid = :unset) ⇒ Twilio::REST::Preview::DeployedDevices::FleetContext, Twilio::REST::Preview::DeployedDevices::FleetList

Parameters:

  • sid (String) (defaults to: :unset)

    Provides a 34 character string that uniquely identifies the requested Fleet resource.

Returns:



31
32
33
34
35
36
37
38
39
40
# File 'lib/twilio-ruby/rest/preview/deployed_devices.rb', line 31

def fleets(sid=:unset)
    if sid.nil?
        raise ArgumentError, 'sid cannot be nil'
    end
    if sid == :unset
        @fleets ||= FleetList.new self
    else
        FleetContext.new(self, sid)
    end
end

#to_sObject

Provide a user friendly representation



43
44
45
# File 'lib/twilio-ruby/rest/preview/deployed_devices.rb', line 43

def to_s
    '<Twilio::REST::Preview::DeployedDevices>';
end