coeus_analytics 0.1.1 → 0.1.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/coeus_analytics.rb +26 -0
  3. metadata +2 -2
  4. data/lib/coeus.rb +0 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f88bcaa7bdb816e0085b467fa74c113a8583cbee489a38e49a591f0d9c90bb45
4
- data.tar.gz: f80f94562ab3bec0cd86917b380b68b9524666081952944113b3b751aaf40507
3
+ metadata.gz: 0fc465596c32807562e4ffd28e473616b0ec6def791d66e9256a34d3c05b6029
4
+ data.tar.gz: e6023a00708e9e302638b4fc21a836aa0518a09e39623d680f7d602b24d5f0d0
5
5
  SHA512:
6
- metadata.gz: d8729a06e91e54770bf6207a92d9812ea9472b63590d57eab26c9b72d3819c3bba10b5097b74b38e75ed938e5be2aa367b0a4166b2e71c71101a55b11cb1da0e
7
- data.tar.gz: d8f3e84698d11450c4f020dd416f1ac31ba8f98c66a039203c169d60a1b224e007dce8c6b6131a150d7e91d08e19a22659adbc8968a1ef57eb0ca208e0c53922
6
+ metadata.gz: 7c46b1a811ac8eb2743ed460aed343aa3222599ab85f753625d16d423c61075a257220a0a84fdbddc95921c4268a7b0976df31d2b643a538317d29d9bcc5c230
7
+ data.tar.gz: 305c1cb117681c9408872f5b1a41110591dbb9b22c6f788f3f9d5f95a72dadab0e944130c5a913ba4eb42ae5ccb1e5b72fe24acfe7bc18f28d6dbe389e02ffb1
@@ -0,0 +1,26 @@
1
+ require 'net/https'
2
+ require 'httparty'
3
+
4
+ module CoeusAnalytics
5
+ class Events
6
+ def self.send_event(integration_id, event_type, payload)
7
+
8
+ data = {
9
+ integration_id: integration_id,
10
+ event: event_type,
11
+ payload: payload
12
+ }
13
+
14
+ result = HTTParty.post(
15
+ "https://getcoeus.com/api/v1/events",
16
+ body: data.to_json,
17
+ headers: {
18
+ "Content-Type": "application/json"
19
+ },
20
+ verify: false
21
+ )
22
+
23
+ result.code
24
+ end
25
+ end
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coeus_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Kenny
@@ -16,7 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/coeus.rb
19
+ - lib/coeus_analytics.rb
20
20
  homepage: https://rubygems.org/gems/coeus_analytics
21
21
  licenses:
22
22
  - MIT
data/lib/coeus.rb DELETED
@@ -1,24 +0,0 @@
1
- require 'net/https'
2
- require 'httparty'
3
-
4
- class Coeus
5
- def self.send_event(integration_id, event_type, payload)
6
-
7
- data = {
8
- integration_id: integration_id,
9
- event: event_type,
10
- payload: payload
11
- }
12
-
13
- result = HTTParty.post(
14
- "https://getcoeus.com/api/v1/events",
15
- body: data.to_json,
16
- headers: {
17
- "Content-Type": "application/json"
18
- },
19
- verify: false
20
- )
21
-
22
- puts result.code
23
- end
24
- end