Sha256: 4ff98bc601b5e99422db76379b5ee8a7539af8f5707fee65c51f8a088ff2b002

Contents?: true

Size: 261 Bytes

Versions: 16

Compression:

Stored size: 261 Bytes

Contents

require "cgi"

module Rapa
  class Encoder
    # @param parameters [Hash]
    # @return [String]
    def encode(parameters)
      parameters.map do |key, value|
        [
          key,
          value,
        ].join("=")
      end.join("&")
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rapa-0.6.0 lib/rapa/encoder.rb
rapa-0.5.7 lib/rapa/encoder.rb
rapa-0.5.6 lib/rapa/encoder.rb
rapa-0.5.5 lib/rapa/encoder.rb
rapa-0.5.4 lib/rapa/encoder.rb
rapa-0.5.3 lib/rapa/encoder.rb
rapa-0.5.2 lib/rapa/encoder.rb
rapa-0.5.1 lib/rapa/encoder.rb
rapa-0.5.0 lib/rapa/encoder.rb
rapa-0.4.3 lib/rapa/encoder.rb
rapa-0.4.2 lib/rapa/encoder.rb
rapa-0.4.1 lib/rapa/encoder.rb
rapa-0.4.0 lib/rapa/encoder.rb
rapa-0.3.3 lib/rapa/encoder.rb
rapa-0.3.2 lib/rapa/encoder.rb
rapa-0.3.1 lib/rapa/encoder.rb