Method: Wavefront::Validators#wf_apitoken_id?

Defined in:
lib/wavefront-sdk/validators.rb

#wf_apitoken_id?(id) ⇒ Boolean

Ensure the given argument is a valid API token ID

Parameters:

Returns:

  • (Boolean)

Raises:

  • Wavefront::Exception::InvalidApiTokenId if the token ID is not valid



540
541
542
543
544
# File 'lib/wavefront-sdk/validators.rb', line 540

def wf_apitoken_id?(id)
  return true if uuid?(id)

  raise Wavefront::Exception::InvalidApiTokenId, id
end