Sha256: 35170fbb05a3a7db2034d9d96c8151eebb6142efffe35d9c20e24840772c7a5e

Contents?: true

Size: 416 Bytes

Versions: 19

Compression:

Stored size: 416 Bytes

Contents

module Twilio
  module Util
    def url_encode(hash)
      warn "'Twilio::Util::url_encode has been deprecated."
      hash.to_a.map { |p| p.map { |e| CGI.escape get_string(e) }.join '=' }.join '&'
    end

    def get_string(obj)
      warn "'Twilio::Util::get_string has been deprecated."
      if obj.respond_to?(:strftime)
        obj.strftime('%Y-%m-%d')
      else
        obj.to_s
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
twilio-ruby-5.8.1 lib/twilio-ruby/util.rb
twilio-ruby-5.8.0 lib/twilio-ruby/util.rb
twilio-ruby-5.7.2 lib/twilio-ruby/util.rb
twilio-ruby-5.7.1 lib/twilio-ruby/util.rb
twilio-ruby-5.7.0 lib/twilio-ruby/util.rb
twilio-ruby-5.6.4 lib/twilio-ruby/util.rb
twilio-ruby-5.6.3 lib/twilio-ruby/util.rb
twilio-ruby-5.6.2 lib/twilio-ruby/util.rb
twilio-ruby-5.6.1 lib/twilio-ruby/util.rb
twilio-ruby-5.6.0 lib/twilio-ruby/util.rb
twilio-ruby-5.5.1 lib/twilio-ruby/util.rb
twilio-ruby-5.5.0 lib/twilio-ruby/util.rb
twilio-ruby-5.4.5 lib/twilio-ruby/util.rb
twilio-ruby-5.4.4 lib/twilio-ruby/util.rb
twilio-ruby-5.4.3 lib/twilio-ruby/util.rb
twilio-ruby-5.4.2 lib/twilio-ruby/util.rb
twilio-ruby-5.4.1 lib/twilio-ruby/util.rb
twilio-ruby-5.4.0 lib/twilio-ruby/util.rb
twilio-ruby-5.3.1 lib/twilio-ruby/util.rb