Sha256: b7406f24aaa70f0c32d2b078c07585b3e3ba3dc73c2dda351fb5b1a239355a0c

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /       

module Twilio
  module REST
    class Preview
      class Wireless < Version
        ##
        # Initialize the Wireless version of Preview
        def initialize(domain)
          super
          @version = 'wireless'
          @commands = nil
          @devices = nil
          @rate_plans = nil
        end
        
        def commands(sid=:unset)
          if sid == :unset
            @commands ||= CommandList.new self
          else
            CommandContext.new(self, sid)
          end
        end
        
        def devices(sid=:unset)
          if sid == :unset
            @devices ||= DeviceList.new self
          else
            DeviceContext.new(self, sid)
          end
        end
        
        def rate_plans(sid=:unset)
          if sid == :unset
            @rate_plans ||= RatePlanList.new self
          else
            RatePlanContext.new(self, sid)
          end
        end
        
        ##
        # Provide a user friendly representation
        def to_s
          '<Twilio::REST::Preview::Wireless>'
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc18 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc17 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc16 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc15 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc14 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc13 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc12 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc11 lib/twilio-ruby/rest/preview/wireless.rb
twilio-ruby-5.0.0.rc10 lib/twilio-ruby/rest/preview/wireless.rb