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.100 lib/tickethub/formats/form_format.rb
tickethub-0.3.99 lib/tickethub/formats/form_format.rb
tickethub-0.3.98 lib/tickethub/formats/form_format.rb
tickethub-0.3.97 lib/tickethub/formats/form_format.rb
tickethub-0.3.96 lib/tickethub/formats/form_format.rb
tickethub-0.3.95 lib/tickethub/formats/form_format.rb
tickethub-0.3.94 lib/tickethub/formats/form_format.rb
tickethub-0.3.93 lib/tickethub/formats/form_format.rb
tickethub-0.3.92 lib/tickethub/formats/form_format.rb
tickethub-0.3.91 lib/tickethub/formats/form_format.rb
tickethub-0.3.90 lib/tickethub/formats/form_format.rb
tickethub-0.3.89 lib/tickethub/formats/form_format.rb
tickethub-0.3.88 lib/tickethub/formats/form_format.rb
tickethub-0.3.87 lib/tickethub/formats/form_format.rb
tickethub-0.3.86 lib/tickethub/formats/form_format.rb
tickethub-0.3.85 lib/tickethub/formats/form_format.rb
tickethub-0.3.84 lib/tickethub/formats/form_format.rb
tickethub-0.3.82 lib/tickethub/formats/form_format.rb
tickethub-0.3.81 lib/tickethub/formats/form_format.rb
tickethub-0.3.80 lib/tickethub/formats/form_format.rb