Class: SolidusSubscriptions::ChurnBuster::SubscriptionCustomerSerializer

Inherits:
Serializer
  • Object
show all
Defined in:
lib/solidus_subscriptions/churn_buster/subscription_customer_serializer.rb

Instance Attribute Summary

Attributes inherited from Serializer

#object

Instance Method Summary collapse

Methods inherited from Serializer

#initialize, serialize

Constructor Details

This class inherits a constructor from SolidusSubscriptions::ChurnBuster::Serializer

Instance Method Details

#to_hObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/solidus_subscriptions/churn_buster/subscription_customer_serializer.rb', line 6

def to_h
  {
    source: 'in_house',
    source_id: object.id,
    email: object.user.email,
    properties: {
      name: name
    },
  }
end