Class: Twilio::REST::Supersim

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/supersim.rb,
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: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ Supersim

Initialize the Supersim Domain


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

def initialize(twilio)
  super

  @base_url = 'https://supersim.twilio.com'
  @host = 'supersim.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

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

Parameters:

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

    The unique string that we created to identify the Command resource.

Returns:


36
37
38
# File 'lib/twilio-ruby/rest/supersim.rb', line 36

def commands(sid=:unset)
  self.v1.commands(sid)
end

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

Parameters:

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

    The unique string that we created to identify the Fleet resource.

Returns:


45
46
47
# File 'lib/twilio-ruby/rest/supersim.rb', line 45

def fleets(sid=:unset)
  self.v1.fleets(sid)
end

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

Parameters:

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

    The unique string that identifies the Network Access Profile resource.

Returns:


63
64
65
# File 'lib/twilio-ruby/rest/supersim.rb', line 63

def network_access_profiles(sid=:unset)
  self.v1.network_access_profiles(sid)
end

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

Parameters:

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

    The unique string that we created to identify the Network resource.

Returns:


54
55
56
# File 'lib/twilio-ruby/rest/supersim.rb', line 54

def networks(sid=:unset)
  self.v1.networks(sid)
end

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

Parameters:

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

    The unique string that identifies the Sim resource.

Returns:


71
72
73
# File 'lib/twilio-ruby/rest/supersim.rb', line 71

def sims(sid=:unset)
  self.v1.sims(sid)
end

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

Parameters:

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

    The unique string that we created to identify the SMS Command resource.

Returns:


80
81
82
# File 'lib/twilio-ruby/rest/supersim.rb', line 80

def sms_commands(sid=:unset)
  self.v1.sms_commands(sid)
end

#to_sObject

Provide a user friendly representation


92
93
94
# File 'lib/twilio-ruby/rest/supersim.rb', line 92

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

#usage_recordsTwilio::REST::Supersim::V1::UsageRecordInstance


86
87
88
# File 'lib/twilio-ruby/rest/supersim.rb', line 86

def usage_records
  self.v1.usage_records()
end

#v1Object

Version v1 of supersim


27
28
29
# File 'lib/twilio-ruby/rest/supersim.rb', line 27

def v1
  @v1 ||= V1.new self
end