Sha256: e4dd6b3cbceebbb89133efbca5260db0667de6e22c1526c61f30c4a5b8264f4e

Contents?: true

Size: 286 Bytes

Versions: 128

Compression:

Stored size: 286 Bytes

Contents

module Tickethub
  module Formats
    class FormFormat < Format
      def mime_type
        'application/x-www-form-urlencoded'
      end

      def encode(params, options = nil)
        Helpers.to_param(params)
      end

      def decode(body)
        body
      end
    end
  end
end

Version data entries

128 entries across 128 versions & 1 rubygems

Version Path
tickethub-0.3.58 lib/tickethub/formats/form_format.rb
tickethub-0.3.57 lib/tickethub/formats/form_format.rb
tickethub-0.3.56 lib/tickethub/formats/form_format.rb
tickethub-0.3.55 lib/tickethub/formats/form_format.rb
tickethub-0.3.54 lib/tickethub/formats/form_format.rb
tickethub-0.3.53 lib/tickethub/formats/form_format.rb
tickethub-0.3.52 lib/tickethub/formats/form_format.rb
tickethub-0.3.51 lib/tickethub/formats/form_format.rb
tickethub-0.3.50 lib/tickethub/formats/form_format.rb
tickethub-0.3.49 lib/tickethub/formats/form_format.rb
tickethub-0.3.47 lib/tickethub/formats/form_format.rb
tickethub-0.3.46 lib/tickethub/formats/form_format.rb
tickethub-0.3.45 lib/tickethub/formats/form_format.rb
tickethub-0.3.44 lib/tickethub/formats/form_format.rb
tickethub-0.3.43 lib/tickethub/formats/form_format.rb
tickethub-0.3.42 lib/tickethub/formats/form_format.rb
tickethub-0.3.41 lib/tickethub/formats/form_format.rb
tickethub-0.3.40 lib/tickethub/formats/form_format.rb
tickethub-0.3.39 lib/tickethub/formats/form_format.rb
tickethub-0.3.38 lib/tickethub/formats/form_format.rb