Sha256: 699affc7d47f8ecf52c070dca5a9a5abc07a356b7243beaf5b52ff774481ec4c

Contents?: true

Size: 365 Bytes

Versions: 42

Compression:

Stored size: 365 Bytes

Contents

module Twilio
  module REST
    class IncomingPhoneNumbers < ListResource
      def initialize(path, client)
        super
        @submodule = :NumberType
        resource :mobile, :local, :toll_free
      end

      def buy(phone_number)
        create phone_number: phone_number
      end
    end

    class IncomingPhoneNumber < InstanceResource; end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
twilio-ruby-4.13.0 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.12.1 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.11.1 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.11.0 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.10.0.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.10.0 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.9.1 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.9.1.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.9.0 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.9.0.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.8.0 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.7.0 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.8.3.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.8.2.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.8.1.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.8.0.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.6.2 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.6.1 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.6.0 lib/twilio-ruby/rest/incoming_phone_numbers.rb
twilio-ruby-4.7.0.edge lib/twilio-ruby/rest/incoming_phone_numbers.rb