class Twilio::REST::Supersim::V1
Public Class Methods
Initialize the V1
version of Supersim
Twilio::REST::Version::new
# File lib/twilio-ruby/rest/supersim/v1.rb 15 def initialize(domain) 16 super 17 @version = 'v1' 18 @commands = nil 19 @fleets = nil 20 @networks = nil 21 @network_access_profiles = nil 22 @sims = nil 23 @sms_commands = nil 24 @usage_records = nil 25 end
Public Instance Methods
@param [String] sid The SID of the Command resource to fetch. @return [Twilio::REST::Supersim::V1::CommandContext] if sid was passed. @return [Twilio::REST::Supersim::V1::CommandList]
# File lib/twilio-ruby/rest/supersim/v1.rb 31 def commands(sid=:unset) 32 if sid.nil? 33 raise ArgumentError, 'sid cannot be nil' 34 end 35 if sid == :unset 36 @commands ||= CommandList.new self 37 else 38 CommandContext.new(self, sid) 39 end 40 end
@param [String] sid The SID of the Fleet resource to fetch. @return [Twilio::REST::Supersim::V1::FleetContext] if sid was passed. @return [Twilio::REST::Supersim::V1::FleetList]
# File lib/twilio-ruby/rest/supersim/v1.rb 46 def fleets(sid=:unset) 47 if sid.nil? 48 raise ArgumentError, 'sid cannot be nil' 49 end 50 if sid == :unset 51 @fleets ||= FleetList.new self 52 else 53 FleetContext.new(self, sid) 54 end 55 end
@param [String] sid The SID of the Network Access Profile resource to fetch. @return [Twilio::REST::Supersim::V1::NetworkAccessProfileContext] if sid was passed. @return [Twilio::REST::Supersim::V1::NetworkAccessProfileList]
# File lib/twilio-ruby/rest/supersim/v1.rb 76 def network_access_profiles(sid=:unset) 77 if sid.nil? 78 raise ArgumentError, 'sid cannot be nil' 79 end 80 if sid == :unset 81 @network_access_profiles ||= NetworkAccessProfileList.new self 82 else 83 NetworkAccessProfileContext.new(self, sid) 84 end 85 end
@param [String] sid The SID of the Network resource to fetch. @return [Twilio::REST::Supersim::V1::NetworkContext] if sid was passed. @return [Twilio::REST::Supersim::V1::NetworkList]
# File lib/twilio-ruby/rest/supersim/v1.rb 61 def networks(sid=:unset) 62 if sid.nil? 63 raise ArgumentError, 'sid cannot be nil' 64 end 65 if sid == :unset 66 @networks ||= NetworkList.new self 67 else 68 NetworkContext.new(self, sid) 69 end 70 end
@param [String] sid The SID of the Sim resource to fetch. @return [Twilio::REST::Supersim::V1::SimContext] if sid was passed. @return [Twilio::REST::Supersim::V1::SimList]
# File lib/twilio-ruby/rest/supersim/v1.rb 91 def sims(sid=:unset) 92 if sid.nil? 93 raise ArgumentError, 'sid cannot be nil' 94 end 95 if sid == :unset 96 @sims ||= SimList.new self 97 else 98 SimContext.new(self, sid) 99 end 100 end
@param [String] sid The SID of the SMS Command resource to fetch. @return [Twilio::REST::Supersim::V1::SmsCommandContext] if sid was passed. @return [Twilio::REST::Supersim::V1::SmsCommandList]
# File lib/twilio-ruby/rest/supersim/v1.rb 106 def sms_commands(sid=:unset) 107 if sid.nil? 108 raise ArgumentError, 'sid cannot be nil' 109 end 110 if sid == :unset 111 @sms_commands ||= SmsCommandList.new self 112 else 113 SmsCommandContext.new(self, sid) 114 end 115 end
Provide a user friendly representation
# File lib/twilio-ruby/rest/supersim/v1.rb 125 def to_s 126 '<Twilio::REST::Supersim::V1>' 127 end
@return [Twilio::REST::Supersim::V1::UsageRecordContext]
# File lib/twilio-ruby/rest/supersim/v1.rb 119 def usage_records 120 @usage_records ||= UsageRecordList.new self 121 end