Class: SolidusSubscriptions::ChurnBuster::SubscriptionSerializer
- Inherits:
-
Serializer
- Object
- Serializer
- SolidusSubscriptions::ChurnBuster::SubscriptionSerializer
- Defined in:
- lib/solidus_subscriptions/churn_buster/subscription_serializer.rb
Instance Attribute Summary
Attributes inherited from Serializer
Instance Method Summary collapse
Methods inherited from Serializer
Constructor Details
This class inherits a constructor from SolidusSubscriptions::ChurnBuster::Serializer
Instance Method Details
#to_h ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/solidus_subscriptions/churn_buster/subscription_serializer.rb', line 6 def to_h { subscription: { source: 'in_house', source_id: object.id }, customer: SubscriptionCustomerSerializer.serialize(object), } end |