# File lib/hammer_cli_import/base.rb, line 180 def lookup_entity(entity_type, entity_id, online_lookup = false) if (!get_cache(entity_type)[entity_id] || online_lookup) get_cache(entity_type)[entity_id] = mapped_api_call(entity_type, :show, {'id' => entity_id}) else debug "#{to_singular(entity_type).capitalize} #{entity_id} taken from cache." end return get_cache(entity_type)[entity_id] end