Add a configure method to the class

This commit is contained in:
Dan Milne
2019-09-09 13:26:11 +10:00
parent 8ba56663ae
commit c77d41d3f1
3 changed files with 41 additions and 1 deletions

View File

@@ -20,6 +20,25 @@ Or install it yourself as:
## Usage
The library can be initialised with a Rails initializer such as
```ruby
Paapi.configure do |config|
config.access_key = 'your-access-key'
config.secret_key = 'your-secret-key'
config.partner_tag = 'your-tag'
end
```
Configurable itemes:
* access_key
* secret_key
* partner_tag
* partner_type
* marketplace
* test_mode
```ruby
require 'paapi'