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.



234
235
236
# File 'lib/opsmgr/api/results.rb', line 234

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

Instance Attribute Details

#user_idObject (readonly)

Returns the value of attribute user_id.



232
233
234
# File 'lib/opsmgr/api/results.rb', line 232

def user_id
  @user_id
end

Instance Method Details

#user_already_existed?Boolean

Returns:

  • (Boolean)


238
239
240
# File 'lib/opsmgr/api/results.rb', line 238

def user_already_existed?
  false
end