itc_analytics 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a550d8b84715806e141278b606af437af78bc50560435874395ef7a2175dadf5
4
- data.tar.gz: 303820cbed16a0441fc53fbf29a3a7349e6d4340433ff7d4ccedf35741b41d86
3
+ metadata.gz: a9147684fcbd2d7ba1e0cb7afad81a0665fadd3a880f93d4b216a6f7196996f6
4
+ data.tar.gz: c6f34fd1d8a50fa0c2ca93a0c43224cd1960b4976d4b52249e4425b9ce7a9eec
5
5
  SHA512:
6
- metadata.gz: e912a249dd1a3dc8ea5bb6e3b1b370b927661a5c61199bad4e1d9e23619b7c258d84a8d511f5e202098647067090668cbbb3dee58e3eaa43e7a025577454f936
7
- data.tar.gz: 8c9dd54a9e936139372bb2e8898eba5b51e93275844cb13f21954c8d1a2b5e45c5d1bc16f405c31ca9e25bdf6b1bd607508699517f812103f1aaad29116d1558
6
+ metadata.gz: 8c1b2bef4001e53dc5b814e457f2ce6d426293f82aef955a6015b3f09bf3ec150414e617c4a707fd98b04486eb2a25c19cdd70a44a727ff31dacb526b321418e
7
+ data.tar.gz: 2ba61123670c72ff629762602af6fd659432ef85326c140f621ad7fc92dcdc0975d2ff69b94f4c0c22452bebb6a25608c35848d72db2577ac69f4c637dbaa824
data/lib/itc_analytics.rb CHANGED
@@ -46,5 +46,24 @@ module ITCAnalytics
46
46
  itunesconnect_gateway: itunesconnect_gateway
47
47
  ).execute
48
48
  end
49
- end
49
+
50
+ def get_app_downloads_for_date(app_id, date)
51
+ application = Domain::Entities::Application.new(
52
+ itunes_app_id: app_id,
53
+ itunes_app_name: nil,
54
+ is_bundle: nil,
55
+ icon_url: nil,
56
+ asset_token: nil,
57
+ platforms: nil,
58
+ is_enabled: nil,
59
+ app_opt_in_rate: nil
60
+ )
61
+ UseCases::GetAppInstalls.new(
62
+ applications: [application],
63
+ session_repository: session_repository,
64
+ start_date: date,
65
+ end_date: date,
66
+ itunes_gateway: itunesconnect_gateway
67
+ ).execute
68
+ end
50
69
  end
@@ -33,7 +33,7 @@ module ITCAnalytics
33
33
  end
34
34
 
35
35
  def valid?
36
- String(itunes_app_id).length > 0 && String(itunes_app_name).length > 0
36
+ String(itunes_app_id).length > 0
37
37
  end
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module ITCAnalytics
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itc_analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steele Nelson