Class: Opsmgr::Api::CreateFirstUserError

Inherits:
Error
  • Object
show all
Defined in:
lib/opsmgr/api/results.rb

Instance Attribute Summary

Attributes inherited from Result

#message

Instance Method Summary collapse

Methods inherited from Error

#initialize, #success?

Methods inherited from Result

#success?

Constructor Details

This class inherits a constructor from Opsmgr::Api::Error

Instance Method Details

#user_already_existed?Boolean

Returns:

  • (Boolean)


244
245
246
# File 'lib/opsmgr/api/results.rb', line 244

def user_already_existed?
  response.code == '401'
end