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.



229
230
231
232
# File 'lib/opsmgr/api/results.rb', line 229

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

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


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

def success?
  false
end