lucid_intercom 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -5
- data/lib/lucid_intercom/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35d8670f0d2893e7a12ea625f14b0eb9d4cee566dc5462beb02fe4ac6b3802c6
|
|
4
|
+
data.tar.gz: 1d95bf4ed8fdd9d19ea30716c3f7671241d940b52b2fe2d8ff8bd73264d77c16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25e21e7b0b4587b28ac8f698949e18f77dc09d9832785d27db98ea8d5930363a24a233ea15acbde72fceb1ee4123c41db6881691f47c7574086e913bc4d6b946
|
|
7
|
+
data.tar.gz: 50df35c058be977a23e70a06d94eebfa32c7d4efd150b5a0eddc20b5c360edd15e5f7277f449f794e8dfd8597566fabe3915c55bb1e184023b1ee755464494a2
|
data/README.md
CHANGED
|
@@ -37,11 +37,17 @@ See the source code for documentation of arguments.
|
|
|
37
37
|
|
|
38
38
|
When a user installs/uninstalls the app, or changes their plan:
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
event = LucidIntercom::UninstalledEvent.new(shopify_data)
|
|
42
|
-
event = LucidIntercom::ChangedPlanEvent.new(shopify_data, new_plan)
|
|
40
|
+
notify = LucidIntercom::NotifyInstalled.new
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
notify.(shopify_data, new_plan)
|
|
43
|
+
|
|
44
|
+
notify = LucidIntercom::NotifyUninstalled.new
|
|
45
|
+
|
|
46
|
+
notify.(shopify_data)
|
|
47
|
+
|
|
48
|
+
notify = LucidIntercom::NotifyChangedPlan.new
|
|
49
|
+
|
|
50
|
+
notify.(shopify_data, new_plan)
|
|
45
51
|
|
|
46
52
|
Note that the `shopify_data` hash for uninstalled events cannot be
|
|
47
53
|
read from the API (as the access token is invalid at this stage).
|
|
@@ -63,4 +69,8 @@ For partner-friendly app installs, use ‘partner’.
|
|
|
63
69
|
### Custom events
|
|
64
70
|
|
|
65
71
|
To define a custom event, subclass `LucidIntercom::Event`. See the
|
|
66
|
-
source code for documentation
|
|
72
|
+
source code for documentation, and existing subclasses:
|
|
73
|
+
|
|
74
|
+
* `LucidIntercom::NotifyChangedPlan`
|
|
75
|
+
* `LucidIntercom::NotifyInstalled`
|
|
76
|
+
* `LucidIntercom::NotifyUninstalled`
|