Magnifier
Magnifier makes it possible to communicate with the Eskes Media Magazine Maker engine and perform various tasks (duplicate, make_preview, etc.) to projects, without having to deal with the API directly. To communicate with the API, you need an API-key, provided by the Magazine Maker.
Installation
Add this line to your application's Gemfile:
gem 'magnifier'
And then execute:
$ bundle
# after installation, run this command to install the settings file (.yml)
$ rails generate magnifier
Or install it yourself as:
$ gem install magnifier
Usage
Project
- To fetch a list of all projects:
Magnifier::Project.all
- To fetch a project:
Magnifier::Project.find(123)
Public methods
# duplicate
# duplicates the current project. Example:
new_project = Project.find(123).duplicate
Contributing
- Fork it
- 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