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.



252
253
254
255
# File 'lib/opsmgr/api/results.rb', line 252

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

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


257
258
259
# File 'lib/opsmgr/api/results.rb', line 257

def success?
  false
end