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/usage_record.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, 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
|
# 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
@usage_records = nil
end
|
Instance Method Details
30
31
32
33
34
35
36
37
38
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 30
def commands(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@commands ||= CommandList.new self
else
CommandContext.new(self, sid)
end
end
|
44
45
46
47
48
49
50
51
52
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 44
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
|
72
73
74
75
76
77
78
79
80
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 72
def network_access_profiles(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@network_access_profiles ||= NetworkAccessProfileList.new self
else
NetworkAccessProfileContext.new(self, sid)
end
end
|
58
59
60
61
62
63
64
65
66
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 58
def networks(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@networks ||= NetworkList.new self
else
NetworkContext.new(self, sid)
end
end
|
86
87
88
89
90
91
92
93
94
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 86
def sims(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
elsif sid == :unset
@sims ||= SimList.new self
else
SimContext.new(self, sid)
end
end
|
#to_s ⇒ Object
Provide a user friendly representation
104
105
106
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 104
def to_s
'<Twilio::REST::Supersim::V1>'
end
|
#usage_records ⇒ Twilio::REST::Supersim::V1::UsageRecordContext
98
99
100
|
# File 'lib/twilio-ruby/rest/supersim/v1.rb', line 98
def usage_records
@usage_records ||= UsageRecordList.new self
end
|