def autoload_names(*class_names)
      mappings = class_names.inject({}) do |mappings, class_name|
        mappings.update(class_name => Flickr.underscore(class_name.to_s))
      end
      directory = Flickr.underscore(name)

      autoload_dir directory, mappings
    end
def autoload_names(*class_names)
      mappings = class_names.inject({}) do |mappings, class_name|
        mappings.update(class_name => Flickr.underscore(class_name.to_s))
      end
      directory = Flickr.underscore(name)

      autoload_dir directory, mappings
    end
Flickr::Object and Flickr::Api contain too many constants, so rather than
 providing an explicit filename we rather use the underscored constant name.