Method: ManageIQ::API::Client::Resource#method_missing

Defined in:
lib/manageiq/api/client/resource.rb

#method_missing(sym, *args, &block) ⇒ Object (private)



41
42
43
44
45
46
47
48
49
50
# File 'lib/manageiq/api/client/resource.rb', line 41

def method_missing(sym, *args, &block)
  reload_actions unless actions_present?
  if attributes.key?(sym.to_s)
    attributes[sym.to_s]
  elsif action_defined?(sym)
    exec_action(sym, *args, &block)
  else
    super
  end
end