Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.14 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.14 KB

Content Checker

The given Ruby code is a module called ContentChecker that provides a configuration class and a content checking class.

The configuration class defines default settings for the content checking API, such as the API key and the machine learning model to use.

The content checking class, called DiscountCodeChecker, has a method called check that takes in content and a model and makes an API request to get content checking results using the API settings defined in the configuration class.

The module also provides a way to configure the API settings by using the configure method.

Overall, this module can be used for content checking with machine learning models via an API, and allows customization of the API settings.

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

gem 'content_checker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install content_checker

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.