Sha256: 275e3f9022dae366c635e4280a3efa9a9b1a3872a0b627a533d54d3dd3326063

Contents?: true

Size: 370 Bytes

Versions: 7

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module SolidusSubscriptions
  module ChurnBuster
    class Serializer
      attr_reader :object

      class << self
        def serialize(object)
          new(object).to_h
        end
      end

      def initialize(object)
        @object = object
      end

      def to_h
        raise NotImplementedError
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 lib/solidus_subscriptions/churn_buster/serializer.rb
solidus_subscriptions-2.0.1 lib/solidus_subscriptions/churn_buster/serializer.rb
solidus_subscriptions-2.0.0 lib/solidus_subscriptions/churn_buster/serializer.rb
solidus_subscriptions-1.1.0 lib/solidus_subscriptions/churn_buster/serializer.rb
solidus_subscriptions-1.0.1 lib/solidus_subscriptions/churn_buster/serializer.rb
solidus_subscriptions-1.0.0 lib/solidus_subscriptions/churn_buster/serializer.rb
solidus_subscriptions-1.0.0.rc1 lib/solidus_subscriptions/churn_buster/serializer.rb