Method: Wavefront::Validators#wf_usergroup_id?

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

#wf_usergroup_id?(gid) ⇒ Boolean

Ensure the given argument is a valid user group.

Parameters:

  • gid (String)

    user group identiier

Returns:

  • (Boolean)

    true if valid

Raises:

  • Wavefront::Exceptions::InvalidUserGroupId if not valid



419
420
421
422
423
# File 'lib/wavefront-sdk/validators.rb', line 419

def wf_usergroup_id?(gid)
  return true if uuid?(gid)

  raise Wavefront::Exception::InvalidUserGroupId, gid
end