Class: Twilio::REST::Wireless::V1
- Defined in:
- 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/sim/data_session.rb,
lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb
Defined Under Namespace
Classes: CommandContext, CommandInstance, CommandList, CommandPage, RatePlanContext, RatePlanInstance, RatePlanList, RatePlanPage, SimContext, SimInstance, SimList, SimPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #commands(sid = :unset) ⇒ Twilio::REST::Wireless::V1::CommandInstance, Twilio::REST::Wireless::V1::CommandList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Wireless.
- #rate_plans(sid = :unset) ⇒ Twilio::REST::Wireless::V1::RatePlanInstance, Twilio::REST::Wireless::V1::RatePlanList
- #sims(sid = :unset) ⇒ Twilio::REST::Wireless::V1::SimInstance, Twilio::REST::Wireless::V1::SimList
-
#to_s ⇒ Object
Provide a user friendly representation.
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 Wireless
13 14 15 16 17 18 19 |
# File 'lib/twilio-ruby/rest/wireless/v1.rb', line 13 def initialize(domain) super @version = 'v1' @commands = nil @rate_plans = nil @sims = nil end |
Instance Method Details
#commands(sid = :unset) ⇒ Twilio::REST::Wireless::V1::CommandInstance, Twilio::REST::Wireless::V1::CommandList
25 26 27 28 29 30 31 32 33 |
# File 'lib/twilio-ruby/rest/wireless/v1.rb', line 25 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 |
#rate_plans(sid = :unset) ⇒ Twilio::REST::Wireless::V1::RatePlanInstance, Twilio::REST::Wireless::V1::RatePlanList
39 40 41 42 43 44 45 46 47 |
# File 'lib/twilio-ruby/rest/wireless/v1.rb', line 39 def rate_plans(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' elsif sid == :unset @rate_plans ||= RatePlanList.new self else RatePlanContext.new(self, sid) end end |
#sims(sid = :unset) ⇒ Twilio::REST::Wireless::V1::SimInstance, Twilio::REST::Wireless::V1::SimList
53 54 55 56 57 58 59 60 61 |
# File 'lib/twilio-ruby/rest/wireless/v1.rb', line 53 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
65 66 67 |
# File 'lib/twilio-ruby/rest/wireless/v1.rb', line 65 def to_s '<Twilio::REST::Wireless::V1>' end |