class ManageIQ::API::Client::ActionResult

Attributes

attributes[R]

Public Class Methods

an_action_result?(hash) click to toggle source
# File lib/manageiq/api/client/action_result.rb, line 12
def self.an_action_result?(hash)
  hash && hash.key?("success") && hash.key?("message")
end
new(action_hash) click to toggle source
# File lib/manageiq/api/client/action_result.rb, line 7
def initialize(action_hash)
  raise "Not a valid Action Result specified" unless self.class.an_action_result?(action_hash)
  @attributes = action_hash.dup
end

Public Instance Methods

failed?() click to toggle source
# File lib/manageiq/api/client/action_result.rb, line 20
def failed?
  !success
end
method_missing(sym, *args, &block) click to toggle source
Calls superclass method
# File lib/manageiq/api/client/action_result.rb, line 24
def method_missing(sym, *args, &block)
  attributes && attributes.key?(sym.to_s) ? attributes[sym.to_s] : super(sym, *args, &block)
end
respond_to_missing?(sym, *args, &block) click to toggle source
Calls superclass method
# File lib/manageiq/api/client/action_result.rb, line 28
def respond_to_missing?(sym, *args, &block)
  attributes && attributes.key?(sym.to_s) || super(sym, *args, &block)
end
succeeded?() click to toggle source
# File lib/manageiq/api/client/action_result.rb, line 16
def succeeded?
  success
end