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.79 lib/tickethub/formats/form_format.rb
tickethub-0.3.78 lib/tickethub/formats/form_format.rb
tickethub-0.3.77 lib/tickethub/formats/form_format.rb
tickethub-0.3.76 lib/tickethub/formats/form_format.rb
tickethub-0.3.75 lib/tickethub/formats/form_format.rb
tickethub-0.3.74 lib/tickethub/formats/form_format.rb
tickethub-0.3.73 lib/tickethub/formats/form_format.rb
tickethub-0.3.72 lib/tickethub/formats/form_format.rb
tickethub-0.3.71 lib/tickethub/formats/form_format.rb
tickethub-0.3.70 lib/tickethub/formats/form_format.rb
tickethub-0.3.68 lib/tickethub/formats/form_format.rb
tickethub-0.3.67 lib/tickethub/formats/form_format.rb
tickethub-0.3.66 lib/tickethub/formats/form_format.rb
tickethub-0.3.65 lib/tickethub/formats/form_format.rb
tickethub-0.3.64 lib/tickethub/formats/form_format.rb
tickethub-0.3.63 lib/tickethub/formats/form_format.rb
tickethub-0.3.62 lib/tickethub/formats/form_format.rb
tickethub-0.3.61 lib/tickethub/formats/form_format.rb
tickethub-0.3.60 lib/tickethub/formats/form_format.rb
tickethub-0.3.59 lib/tickethub/formats/form_format.rb