Class: Opsmgr::Api::CreateFirstUserResult

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

Instance Attribute Summary collapse

Attributes inherited from Result

#message

Instance Method Summary collapse

Methods inherited from Result

#success?

Constructor Details

#initialize(user_hash) ⇒ CreateFirstUserResult

Returns a new instance of CreateFirstUserResult.



219
220
221
# File 'lib/opsmgr/api/results.rb', line 219

def initialize(user_hash)
  @user_id = user_hash['user']['id']
end

Instance Attribute Details

#user_idObject (readonly)

Returns the value of attribute user_id.



217
218
219
# File 'lib/opsmgr/api/results.rb', line 217

def user_id
  @user_id
end

Instance Method Details

#user_already_existed?Boolean

Returns:

  • (Boolean)


223
224
225
# File 'lib/opsmgr/api/results.rb', line 223

def user_already_existed?
  false
end