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


15
16
17
18
19
# File 'lib/twilio-ruby/rest/preview/deployed_devices.rb', line 15

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:


26
27
28
29
30
31
32
33
34
35
# File 'lib/twilio-ruby/rest/preview/deployed_devices.rb', line 26

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


39
40
41
# File 'lib/twilio-ruby/rest/preview/deployed_devices.rb', line 39

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