Method: Wavefront::Validators#wf_distribution_count?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_distribution_count?(count) ⇒ Boolean
Ensure the given argument is a valid distribution count.
529 530 531 532 533 |
# File 'lib/wavefront-sdk/validators.rb', line 529 def wf_distribution_count?(count) return true if count.is_a?(Integer) && count.positive? raise Wavefront::Exception::InvalidDistributionCount, count end |