Method: Wavefront::Validators#wf_savedsearch_id?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_savedsearch_id?(id) ⇒ Boolean
Ensure the given argument is a valid saved search ID.
364 365 366 367 368 |
# File 'lib/wavefront-sdk/validators.rb', line 364 def wf_savedsearch_id?(id) return true if id.is_a?(String) && id =~ /^\w{8}$/ raise Wavefront::Exception::InvalidSavedSearchId, id end |