Class: Twilio::REST::Wireless

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/wireless.rb,
lib/twilio-ruby/rest/wireless/v1.rb,
lib/twilio-ruby/rest/wireless/v1/sim.rb,
lib/twilio-ruby/rest/wireless/v1/command.rb,
lib/twilio-ruby/rest/wireless/v1/rate_plan.rb,
lib/twilio-ruby/rest/wireless/v1/usage_record.rb,
lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb,
lib/twilio-ruby/rest/wireless/v1/sim/usage_record.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) ⇒ Wireless

Initialize the Wireless Domain


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

def initialize(twilio)
  super

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

  # Versions
  @v1 = nil
end

Instance Method Details

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

Parameters:

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

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

Returns:


42
43
44
# File 'lib/twilio-ruby/rest/wireless.rb', line 42

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

#rate_plans(sid = :unset) ⇒ Twilio::REST::Wireless::V1::RatePlanInstance, Twilio::REST::Wireless::V1::RatePlanList

Parameters:

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

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

Returns:


51
52
53
# File 'lib/twilio-ruby/rest/wireless.rb', line 51

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

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

Parameters:

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

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

Returns:


60
61
62
# File 'lib/twilio-ruby/rest/wireless.rb', line 60

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

#to_sObject

Provide a user friendly representation


66
67
68
# File 'lib/twilio-ruby/rest/wireless.rb', line 66

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

#usage_recordsTwilio::REST::Wireless::V1::UsageRecordInstance


33
34
35
# File 'lib/twilio-ruby/rest/wireless.rb', line 33

def usage_records
  self.v1.usage_records()
end

#v1Object

Version v1 of wireless


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

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