Sha256: edc531b14a642786339a32e601f454618e839f9c780a451af0423b4e020e1773

Contents?: true

Size: 296 Bytes

Versions: 17

Compression:

Stored size: 296 Bytes

Contents

module GooglePubsubEnhancer::Constants
    MAX_PULL_SIZE = proc do
        user_defined = ::ENV['GOOGLE_PUBSUB_ENHANCER_MAX_PULL_SIZE']
        pull_size = (user_defined || 100).to_i
        raise('GOOGLE_PUBSUB_ENHANCER_MAX_PULL_SIZE') if pull_size == 0
        pull_size
    end.call.freeze
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
google-pubsub-enhancer-0.6.2 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.6.1 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.6.0 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.5.7 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.5.5 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.5.4 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.5.3 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.5.2 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.5.1 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.5.0 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.4.2 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.4.1 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.4.0 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.3.0 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.2.1 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.2.0 lib/google_pubsub_enhancer/constants.rb
google-pubsub-enhancer-0.1.5 lib/google_pubsub_enhancer/constants.rb