eventbrite_sdk 3.1.6 → 3.2.0

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
  SHA1:
3
- metadata.gz: a52f5dc101eb9c54cb29eb1531e65a8cfb82c276
4
- data.tar.gz: f22a07fc87d8e265648205c1eceb10e783927d76
3
+ metadata.gz: 718fdef9c71f82ad006a2b4b856a5eb524e04883
4
+ data.tar.gz: 70decadb74b2b9e2d06e7b0ea9d5657fd345edb8
5
5
  SHA512:
6
- metadata.gz: 60a9100855a292683a26c86b6857a13b1b8bb1e0e538ab1ecc5c5054f8a24fdf4cb1e28b84821292a7b318356864568fc5bb2bec3cbacb6dd29c53c257ae679a
7
- data.tar.gz: b21c56bbea352b70ac7565a1672b1f914354e5c4b4d846e07fe1480750930ba6cd350349899bb0ce74652ab59835229f70faee37698381656e1daf60d5595bc5
6
+ metadata.gz: ff82d5554fb2720e3f8484fd03ad95f6b2e23691397f7ff2b137cf3fb57e4bb7193f68465e95a2fa0255190a8752e3483d4902f12be5cbb1167cd7f037e33878
7
+ data.tar.gz: 10bdecb1cb1357e297bdb6642ee7ba3eccfcc0da5b48a94aa1137a4acfbf0f6c21d532c2306064d526f2e5e8cf25e64aec709b997b15c09447faada2ce413271
data/README.md CHANGED
@@ -149,6 +149,18 @@ order.delete(api_token: YOUR_REQUEST_TOKEN)
149
149
  If you forget to provide the api_token key and `EventbriteSDK.token` is set, the request
150
150
  will fall-back on the global token for the action called.
151
151
 
152
+ # Shallow resource list endpoints
153
+
154
+ Some paginated lists are available at the base of the resource url, webhooks and
155
+ categories for example. The resources that have this trait will include the `Operations::List` module
156
+
157
+ ``` ruby
158
+
159
+ # Retrieving
160
+
161
+ categories = EventbriteSDK::Category.list.page(1) #=> GET /v3/categories/?page=1
162
+ webhooks = EventbriteSDK::Webhook.list.page(1) #=> GET /v3/webhooks/?page=1
163
+ ```
152
164
 
153
165
  ## Development
154
166
 
@@ -1,5 +1,5 @@
1
1
  module EventbriteSDK
2
2
  # Major should always line up with the major point release of the public API
3
3
  # v3 => 3.x.x
4
- VERSION = '3.1.6'.freeze
4
+ VERSION = '3.2.0'.freeze
5
5
  end
@@ -1,5 +1,7 @@
1
1
  module EventbriteSDK
2
2
  class Webhook < Resource
3
+ extend Operations::List
4
+
3
5
  resource_path 'webhooks/:id'
4
6
 
5
7
  schema_definition do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventbrite_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.6
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vinnie Franco