Sha256: 6fa59511263b6d1bad31e97e0240ec536a2bbaa611e545a7cdeecb3c661c59b2

Contents?: true

Size: 357 Bytes

Versions: 10

Compression:

Stored size: 357 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Plugins::Application
  module Serialisation
    extend Spontaneous::Concern

    module ClassMethods
      include Spontaneous::JSON
      def serialise_http(object)
        encode_json(object)
      end

      def deserialise_http(serialised_object)
        decode_json(serialised_object)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta9 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta8 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta7 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta6 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta5 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta4 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta3 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta2 lib/spontaneous/plugins/application/serialisation.rb
spontaneous-0.2.0.beta1 lib/spontaneous/plugins/application/serialisation.rb