diff options
Diffstat (limited to 'lib/solidus_subscriptions/churn_buster/serializer.rb')
-rw-r--r-- | lib/solidus_subscriptions/churn_buster/serializer.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/solidus_subscriptions/churn_buster/serializer.rb b/lib/solidus_subscriptions/churn_buster/serializer.rb new file mode 100644 index 0000000..d8b83bb --- /dev/null +++ b/lib/solidus_subscriptions/churn_buster/serializer.rb @@ -0,0 +1,23 @@ +# 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 |