baremetrics_api 1.0.0 → 1.0.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/lib/baremetrics_api/endpoint/metrics.rb +4 -8
- data/lib/baremetrics_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f0f388425083762c375fee784d4a5b8a5de3e08e
|
|
4
|
+
data.tar.gz: dd46aabff2f76e892ba848bc5c7afa1cb82ea70d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e589b787f9d0bdecaa6436a3b33732e7eba147f77c12ba84fe5e08de8056150c4ada14a2d655d0172b8a6a01d9c1ad195564058ab0471a64432a582cc108602
|
|
7
|
+
data.tar.gz: acd5288cd42a4cfeff34098de70124802008aa3ddeb3b728846c004a1dc221a7ca47a50d58928360af0cca2bf772460abab61aca21b605557da04424d56be1f2
|
|
@@ -15,12 +15,12 @@ module BaremetricsAPI
|
|
|
15
15
|
JSON.parse(show_metric_request(metric, start_date, end_date, compare_to, page).body).with_indifferent_access
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
def show_customers(metric:, start_date:, end_date
|
|
19
|
-
JSON.parse(show_customers_request(metric, start_date, end_date
|
|
18
|
+
def show_customers(metric:, start_date:, end_date:)
|
|
19
|
+
JSON.parse(show_customers_request(metric, start_date, end_date).body).with_indifferent_access
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
def show_plan_breakout(metric:, start_date:, end_date
|
|
23
|
-
JSON.parse(show_plan_breakout_request(metric, start_date, end_date
|
|
22
|
+
def show_plan_breakout(metric:, start_date:, end_date:)
|
|
23
|
+
JSON.parse(show_plan_breakout_request(metric, start_date, end_date).body).with_indifferent_access
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
private
|
|
@@ -63,8 +63,6 @@ module BaremetricsAPI
|
|
|
63
63
|
end_date: end_date
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
query_params[:page] = page unless page.nil?
|
|
67
|
-
|
|
68
66
|
@client.connection.get do |req|
|
|
69
67
|
req.url "#{PATH}/#{metric}/customers"
|
|
70
68
|
req.params = query_params
|
|
@@ -78,8 +76,6 @@ module BaremetricsAPI
|
|
|
78
76
|
end_date: end_date
|
|
79
77
|
}
|
|
80
78
|
|
|
81
|
-
query_params[:page] = page unless page.nil?
|
|
82
|
-
|
|
83
79
|
@client.connection.get do |req|
|
|
84
80
|
req.url "#{PATH}/#{metric}/plans"
|
|
85
81
|
req.params = query_params
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: baremetrics_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Third Blink Software Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|