Class: Opsmgr::Api::Error

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

Direct Known Subclasses

CreateFirstUserError

Instance Attribute Summary

Attributes inherited from Result

#message

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ Error

Returns a new instance of Error.



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

def initialize(message, response)
  @message = "#{message}:\n#{response.body}"
  @response = response
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


249
250
251
# File 'lib/opsmgr/api/results.rb', line 249

def success?
  false
end