Class: Twilio::REST::Supersim::V1
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::Supersim::V1
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/ip_command.rb,
lib/twilio-ruby/rest/supersim/v1/sms_command.rb,
lib/twilio-ruby/rest/supersim/v1/esim_profile.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, EsimProfileContext, EsimProfileInstance, EsimProfileList, EsimProfilePage, FleetContext, FleetInstance, FleetList, FleetPage, IpCommandContext, IpCommandInstance, IpCommandList, IpCommandPage, 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
26
27
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 15
def initialize(domain)
super
@version = 'v1'
@commands = nil
@esim_profiles = nil
@fleets = nil
@ip_commands = nil
@networks = nil
@network_access_profiles = nil
@sims = nil
@sms_commands = nil
@usage_records = nil
end
|
Instance Method Details
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 33
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
|
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 48
def esim_profiles(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@esim_profiles ||= EsimProfileList.new self
else
EsimProfileContext.new(self, sid)
end
end
|
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 63
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
|
78
79
80
81
82
83
84
85
86
87
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 78
def ip_commands(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@ip_commands ||= IpCommandList.new self
else
IpCommandContext.new(self, sid)
end
end
|
108
109
110
111
112
113
114
115
116
117
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 108
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
|
93
94
95
96
97
98
99
100
101
102
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 93
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
|
123
124
125
126
127
128
129
130
131
132
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 123
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
|
138
139
140
141
142
143
144
145
146
147
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 138
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_s ⇒ Object
Provide a user friendly representation
157
158
159
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 157
def to_s
'<Twilio::REST::Supersim::V1>'
end
|
#usage_records ⇒ Twilio::REST::Supersim::V1::UsageRecordContext
151
152
153
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 151
def usage_records
@usage_records ||= UsageRecordList.new self
end
|