A Ruby interface to the BrightCloud API.
Setting up BrightCloud is done via the configure
method.
BrightCloud.configure do |b|
b.key = ENV['BRIGHTCLOUD_KEY']
b.secret = ENV['BRIGHTCLOUD_SECRET']
end
The BrightCloud::CategoryFinder
object is used to determine which categories a URL belongs to.
finder = BrightCloud::CategoryFinder.new 'perch.co'
finder.categories # => An array of BrightCloud::Category objects.
- Fork it ( http://github.com//BrightCloud/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request