Sha256: bc2275d83d81e088e184b95d1188ea6b0884b48e53bb2edad1c7d3d1cf2e6e42
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
# AmazonFeedValidator ## Installation Add this line to your application's Gemfile: ```ruby gem 'amazon_feed_validator' ``` ## Usage To validate a single feed item based on Amazons feed type enumeration: ```ruby validator = AmazonFeedValidator.new(feed, name: 'Product') validator.validate # => true or false validator.errors # => ["Some error description"] ``` To validate a whole feed file: ```ruby validator = AmazonFeedValidator.new(feed, name: 'amzn-envelope') validator.validate # => true or false validator.errors # => ["Some error description"] ``` ## Development To update xsd files run: ```bash bundle exec rake amazon:xsd ``` ## Testing To run all tests: ```bash bundle exec rake ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amazon_feed_validator-0.1.0 | README.md |