class Twilio::REST::Wireless
Public Class Methods
new(twilio)
click to toggle source
Initialize the Wireless
Domain
Calls superclass method
Twilio::REST::Domain::new
# File lib/twilio-ruby/rest/wireless.rb 14 def initialize(twilio) 15 super 16 17 @base_url = 'https://wireless.twilio.com' 18 @host = 'wireless.twilio.com' 19 @port = 443 20 21 # Versions 22 @v1 = nil 23 end
Public Instance Methods
commands(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Command
resource.
@return [Twilio::REST::Wireless::V1::CommandInstance] if sid was passed. @return [Twilio::REST::Wireless::V1::CommandList]
# File lib/twilio-ruby/rest/wireless.rb 42 def commands(sid=:unset) 43 self.v1.commands(sid) 44 end
rate_plans(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the RatePlan
resource.
@return [Twilio::REST::Wireless::V1::RatePlanInstance] if sid was passed. @return [Twilio::REST::Wireless::V1::RatePlanList]
# File lib/twilio-ruby/rest/wireless.rb 51 def rate_plans(sid=:unset) 52 self.v1.rate_plans(sid) 53 end
sims(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Sim
resource.
@return [Twilio::REST::Wireless::V1::SimInstance] if sid was passed. @return [Twilio::REST::Wireless::V1::SimList]
# File lib/twilio-ruby/rest/wireless.rb 60 def sims(sid=:unset) 61 self.v1.sims(sid) 62 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/wireless.rb 66 def to_s 67 '#<Twilio::REST::Wireless>' 68 end
usage_records()
click to toggle source
@return [Twilio::REST::Wireless::V1::UsageRecordInstance]
# File lib/twilio-ruby/rest/wireless.rb 33 def usage_records 34 self.v1.usage_records() 35 end
v1()
click to toggle source
Version
v1 of wireless
# File lib/twilio-ruby/rest/wireless.rb 27 def v1 28 @v1 ||= V1.new self 29 end