Sha256: b3cbad03807b15f5b3fa1c1ec085b0a48edd784c305eada1807bfa5d0b457ece

Contents?: true

Size: 252 Bytes

Versions: 6

Compression:

Stored size: 252 Bytes

Contents

# frozen_string_literal: true

module GrapeThrottler
  module Extensions
    module ThrottleExtension

      def throttle(options = {})
        route_setting :throttle, options
        options
      end

      Grape::API.extend self

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape-throttler-1.2.1 lib/grape-throttler/extensions/throttle_extension.rb
grape-throttler-1.2.0 lib/grape-throttler/extensions/throttle_extension.rb
grape-throttler-1.1.1 lib/grape-throttler/extensions/throttle_extension.rb
grape-throttler-1.1.0 lib/grape-throttler/extensions/throttle_extension.rb
grape-throttler-1.0.1 lib/grape-throttler/extensions/throttle_extension.rb
grape-throttler-1.0.0 lib/grape-throttler/extensions/throttle_extension.rb