Sha256: 183f866825be382857c792391332cf020b874e7b99726c098d72685580db695a

Contents?: true

Size: 843 Bytes

Versions: 2

Compression:

Stored size: 843 Bytes

Contents

# Arctic vendor

This gem is the backbone used for communication from Vendors to the Core API.

## Usage

Install the gem:

```ruby
gem 'arctic-vendor'
```

Then in your code:

```ruby
require 'bundler/setup'

module Arctic
  module Vendor
    module Dandomain # <-- Change this depending on the vendor you're using
      def collect_products
        Arctic::Vendor.collect_products do |shop|
          # Retrieve products from the shop and return them to the block
        end
      end
      module_function :collect_products

      def distribute_products
        Arctic::Vendor.distribute_products do |shop, products|
          # Send the products to the shop and return the products to the block
        end
      end
      module_function :distribute_products
    end
  end
end
```

## Testing

Run all the tests:

```bash
rake test
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
arctic-vendor-0.2.0 README.md
arctic-vendor-0.1.0 README.md