Class: HammerCLIForeman::Searchables

Inherits:
Object
  • Object
show all
Defined in:
lib/hammer_cli_foreman/id_resolver.rb

Instance Method Summary collapse

Instance Method Details

#for(resource) ⇒ Object



76
77
78
# File 'lib/hammer_cli_foreman/id_resolver.rb', line 76

def for(resource)
  SEARCHABLES[resource.singular_name.to_sym] || DEFAULT_SEARCHABLES
end