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.16 lib/tickethub/formats/form_format.rb
tickethub-0.3.15 lib/tickethub/formats/form_format.rb
tickethub-0.3.14 lib/tickethub/formats/form_format.rb
tickethub-0.3.13 lib/tickethub/formats/form_format.rb
tickethub-0.3.12 lib/tickethub/formats/form_format.rb
tickethub-0.3.11 lib/tickethub/formats/form_format.rb
tickethub-0.3.9 lib/tickethub/formats/form_format.rb
tickethub-0.3.7 lib/tickethub/formats/form_format.rb
tickethub-0.3.6 lib/tickethub/formats/form_format.rb
tickethub-0.3.4 lib/tickethub/formats/form_format.rb
tickethub-0.3.3 lib/tickethub/formats/form_format.rb
tickethub-0.3.2 lib/tickethub/formats/form_format.rb
tickethub-0.3.1 lib/tickethub/formats/form_format.rb
tickethub-0.3.0 lib/tickethub/formats/form_format.rb
tickethub-0.2.18 lib/tickethub/formats/form_format.rb
tickethub-0.2.17 lib/tickethub/formats/form_format.rb
tickethub-0.2.15 lib/tickethub/formats/form_format.rb
tickethub-0.2.14 lib/tickethub/formats/form_format.rb
tickethub-0.2.13 lib/tickethub/formats/form_format.rb
tickethub-0.2.12 lib/tickethub/formats/form_format.rb