fathom_api 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2135fbb0e65011d59344ea4ade4ffc075b2b15611965011d5e5c2c8e08e7d111
4
- data.tar.gz: 22eef7800e0b45c7f38514bdd11ea11e9f73fc3cdf2b8e683cf60fa4b54384e1
3
+ metadata.gz: cd1fb1ed59645e003831fb90b389245f3eae70c42aab53a3e810880396960073
4
+ data.tar.gz: 9dca1f450bdadfb8fbb913210a3a6cb2409cfd3355f92c0289c3bb3ec081cf4d
5
5
  SHA512:
6
- metadata.gz: 5ae5a4867c8039e5d636d98908d6e53238ec32c8ebc3d7729f59fde6fa83a7d4a7e2e2c860027ea8f56bad26f2ed848347ed65c1e757158831543d7f09c121ce
7
- data.tar.gz: c3519d4925bc3764670d96297008615c5cd7cef8b1b3a80617290917a418dc39e03aa3c06a7e9abf9f495223ec9dbf23355e2057f52baa6b040051805171a909
6
+ metadata.gz: 3deac641b6283efb87b284c1f4c80f360e5b2e3ab0eac061cf9599de059ba104f4dfb8c246895fd2b1242281411e774d9e76146e8b09560f2399b6b2804f6797
7
+ data.tar.gz: 12b9b2bba5a6e9e72766503aa0eeec5fb6698623df763a9b148883382c11659c4334299026970133abb5301ac1b7c23e9e6ef806d65ad0233c830262ad585109
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fathom_api (0.1.1)
4
+ fathom_api (0.1.2)
5
5
  faraday (~> 1.7)
6
6
  faraday_middleware (~> 1.1)
7
7
 
@@ -71,4 +71,4 @@ DEPENDENCIES
71
71
  standard
72
72
 
73
73
  BUNDLED WITH
74
- 2.2.3
74
+ 2.2.25
data/README.md CHANGED
@@ -113,9 +113,11 @@ client.current_visitors(site_id: site_id, {}) # Can add detailed: true for a mor
113
113
  ### Aggregation
114
114
 
115
115
  ```ruby
116
- client.aggregations.list(entity_id: entity_id, entity_type: entity_type, aggregates: aggregates, **params)
116
+ client.aggregations.list(entity_id: entity_id, entity: entity, aggregates: aggregates, **params)
117
117
  ```
118
118
 
119
+ You can find all the available parameters in the [official Fathom docs](https://usefathom.com/api#introduction)
120
+
119
121
  ## 🙏 Contributing
120
122
 
121
123
  This project uses Standard for formatting Ruby code. Please make sure to run standardrb before submitting pull requests. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/afomera/fathom_api/blob/main/CODE_OF_CONDUCT.md).
@@ -1,9 +1,9 @@
1
1
  module Fathom
2
2
  class AggregationsResource < Resource
3
3
  # TODO: Ensure this works properly
4
- def list(entity_id:, entity_type:, aggregates:, **params)
4
+ def list(entity_id:, entity:, aggregates:, **params)
5
5
  get_request("aggregations", params: params.merge(entity_id: entity_id,
6
- entity_type: entity_type, aggregates: aggregates))
6
+ entity: entity, aggregates: aggregates))
7
7
  end
8
8
  end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fathom
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fathom_api
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
  - Andrea Fomera
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-18 00:00:00.000000000 Z
11
+ date: 2021-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday