Class: Twilio::REST::Supersim::V1

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/supersim/v1.rb,
lib/twilio-ruby/rest/supersim/v1/sim.rb,
lib/twilio-ruby/rest/supersim/v1/fleet.rb,
lib/twilio-ruby/rest/supersim/v1/command.rb,
lib/twilio-ruby/rest/supersim/v1/network.rb,
lib/twilio-ruby/rest/supersim/v1/sms_command.rb,
lib/twilio-ruby/rest/supersim/v1/usage_record.rb,
lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb,
lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb,
lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb

Defined Under Namespace

Classes: CommandContext, CommandInstance, CommandList, CommandPage, FleetContext, FleetInstance, FleetList, FleetPage, NetworkAccessProfileContext, NetworkAccessProfileInstance, NetworkAccessProfileList, NetworkAccessProfilePage, NetworkContext, NetworkInstance, NetworkList, NetworkPage, SimContext, SimInstance, SimList, SimPage, SmsCommandContext, SmsCommandInstance, SmsCommandList, SmsCommandPage, UsageRecordInstance, UsageRecordList, UsageRecordPage

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) ⇒ V1

Initialize the V1 version of Supersim


15
16
17
18
19
20
21
22
23
24
25
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 15

def initialize(domain)
  super
  @version = 'v1'
  @commands = nil
  @fleets = nil
  @networks = nil
  @network_access_profiles = nil
  @sims = nil
  @sms_commands = nil
  @usage_records = nil
end

Instance Method Details

#commands(sid = :unset) ⇒ Twilio::REST::Supersim::V1::CommandContext, Twilio::REST::Supersim::V1::CommandList

Parameters:

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

    The SID of the Command resource to fetch.

Returns:


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

def commands(sid=:unset)
  if sid.nil?
      raise ArgumentError, 'sid cannot be nil'
  end
  if sid == :unset
      @commands ||= CommandList.new self
  else
      CommandContext.new(self, sid)
  end
end

#fleets(sid = :unset) ⇒ Twilio::REST::Supersim::V1::FleetContext, Twilio::REST::Supersim::V1::FleetList

Parameters:

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

    The SID of the Fleet resource to fetch.

Returns:


46
47
48
49
50
51
52
53
54
55
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 46

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

#network_access_profiles(sid = :unset) ⇒ Twilio::REST::Supersim::V1::NetworkAccessProfileContext, Twilio::REST::Supersim::V1::NetworkAccessProfileList

Parameters:

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

    The SID of the Network Access Profile resource to fetch.

Returns:


76
77
78
79
80
81
82
83
84
85
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 76

def network_access_profiles(sid=:unset)
  if sid.nil?
      raise ArgumentError, 'sid cannot be nil'
  end
  if sid == :unset
      @network_access_profiles ||= NetworkAccessProfileList.new self
  else
      NetworkAccessProfileContext.new(self, sid)
  end
end

#networks(sid = :unset) ⇒ Twilio::REST::Supersim::V1::NetworkContext, Twilio::REST::Supersim::V1::NetworkList

Parameters:

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

    The SID of the Network resource to fetch.

Returns:


61
62
63
64
65
66
67
68
69
70
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 61

def networks(sid=:unset)
  if sid.nil?
      raise ArgumentError, 'sid cannot be nil'
  end
  if sid == :unset
      @networks ||= NetworkList.new self
  else
      NetworkContext.new(self, sid)
  end
end

#sims(sid = :unset) ⇒ Twilio::REST::Supersim::V1::SimContext, Twilio::REST::Supersim::V1::SimList

Parameters:

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

    The SID of the Sim resource to fetch.

Returns:


91
92
93
94
95
96
97
98
99
100
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 91

def sims(sid=:unset)
  if sid.nil?
      raise ArgumentError, 'sid cannot be nil'
  end
  if sid == :unset
      @sims ||= SimList.new self
  else
      SimContext.new(self, sid)
  end
end

#sms_commands(sid = :unset) ⇒ Twilio::REST::Supersim::V1::SmsCommandContext, Twilio::REST::Supersim::V1::SmsCommandList

Parameters:

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

    The SID of the SMS Command resource to fetch.

Returns:


106
107
108
109
110
111
112
113
114
115
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 106

def sms_commands(sid=:unset)
  if sid.nil?
      raise ArgumentError, 'sid cannot be nil'
  end
  if sid == :unset
      @sms_commands ||= SmsCommandList.new self
  else
      SmsCommandContext.new(self, sid)
  end
end

#to_sObject

Provide a user friendly representation


125
126
127
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 125

def to_s
  '<Twilio::REST::Supersim::V1>'
end

#usage_recordsTwilio::REST::Supersim::V1::UsageRecordContext

Returns:

  • (Twilio::REST::Supersim::V1::UsageRecordContext)

119
120
121
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 119

def usage_records
  @usage_records ||= UsageRecordList.new self
end