Class: Strava::Webhooks::Models::Subscription
- Inherits:
-
Models::Response
- Object
- Hashie::Trash
- Model
- Models::Response
- Strava::Webhooks::Models::Subscription
- Defined in:
- lib/strava/webhooks/models/subscription.rb
Overview
Represents a webhook subscription.
Webhook subscriptions allow your application to receive real-time notifications when athletes create or update activities, or update their profile information. Each subscription is associated with a callback URL where events will be posted.
Instance Method Summary collapse
-
#application_id ⇒ Integer
The ID of the application that created the subscription.
-
#callback_url ⇒ String
The callback URL where webhook events will be posted.
-
#created_at ⇒ Time
When the subscription was created.
-
#id ⇒ Integer
The subscription ID.
-
#resource_state ⇒ Integer
Resource state indicator.
-
#updated_at ⇒ Time
When the subscription was last updated.
Instance Method Details
#application_id ⇒ Integer
Returns The ID of the application that created the subscription.
27 |
# File 'lib/strava/webhooks/models/subscription.rb', line 27 property 'application_id' |
#callback_url ⇒ String
Returns The callback URL where webhook events will be posted.
30 |
# File 'lib/strava/webhooks/models/subscription.rb', line 30 property 'callback_url' |
#created_at ⇒ Time
Returns When the subscription was created.
36 |
# File 'lib/strava/webhooks/models/subscription.rb', line 36 property 'created_at', transform_with: ->(v) { Time.parse(v) } |
#id ⇒ Integer
Returns The subscription ID.
24 |
# File 'lib/strava/webhooks/models/subscription.rb', line 24 property 'id' |
#resource_state ⇒ Integer
Returns Resource state indicator.
33 |
# File 'lib/strava/webhooks/models/subscription.rb', line 33 property 'resource_state' |
#updated_at ⇒ Time
Returns When the subscription was last updated.
39 |
# File 'lib/strava/webhooks/models/subscription.rb', line 39 property 'updated_at', transform_with: ->(v) { Time.parse(v) } |