Sha256: 9a9a11bbbe639e9689996e7a0c21a06894317b3150722f43ee76e592d904822d

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

module Strava
  module Webhooks
    module Models
      class Challenge < Hashie::Trash
        property 'mode', from: 'hub.mode'
        property 'verify_token', from: 'hub.verify_token'
        property 'challenge', from: 'hub.challenge'

        def response
          { 'hub.challenge' => challenge }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
strava-ruby-client-0.4.2 lib/strava/webhooks/models/challenge.rb
strava-ruby-client-0.4.1 lib/strava/webhooks/models/challenge.rb
strava-ruby-client-0.4.0 lib/strava/webhooks/models/challenge.rb
strava-ruby-client-0.3.2 lib/strava/webhooks/models/challenge.rb
strava-ruby-client-0.3.1 lib/strava/webhooks/models/challenge.rb
strava-ruby-client-0.3.0 lib/strava/webhooks/models/challenge.rb