Sha256: 73ccc023dde476b173dca5c89208cbb1a5a9ca200f12f437ec6c162187654955

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

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

module Twilio
  module REST
    class Wireless
      class V1 < Version
        ##
        # Initialize the V1 version of Wireless
        def initialize(domain)
          super
          @version = 'v1'
          @commands = nil
          @rate_plans = nil
          @sims = nil
        end

        def commands(sid=:unset)
          if sid == :unset
            @commands ||= CommandList.new self
          else
            CommandContext.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

        def sims(sid=:unset)
          if sid == :unset
            @sims ||= SimList.new self
          else
            SimContext.new(self, sid)
          end
        end

        ##
        # Provide a user friendly representation
        def to_s
          '<Twilio::REST::Wireless::V1>'
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc24 lib/twilio-ruby/rest/wireless/v1.rb
twilio-ruby-5.0.0.rc23 lib/twilio-ruby/rest/wireless/v1.rb
twilio-ruby-5.0.0.rc22 lib/twilio-ruby/rest/wireless/v1.rb
twilio-ruby-5.0.0.rc21 lib/twilio-ruby/rest/wireless/v1.rb
twilio-ruby-5.0.0.rc20 lib/twilio-ruby/rest/wireless/v1.rb