Mercado Ripley
The gem allows Ruby developers to access on Mercado Ripley marketplace. Each resource, like Store, Order, Product has its own URL and is manipulated in isolation
Usage
Installation
Add mercado_ripley
to your Gemfile:
gem 'mercado_ripley'
Gettings started
MercadoRipley gem uses OpenStruct
to show results from Mercado Ripley API. Specifically I'm using Recursive Open Struct to return objects like MercadoRipley::Response
.
Configuration
MercadoRipley.configure({
api_key: 'foobar',
base_url: 'https://ripley-preprod.mirakl.net' #optional, but if you need to test it MUST needed
})
Examples
Store
Get store information
response = MercadoRipley::Store.current
puts response.shop_name
# My Store
Product
Offer
Order
Development
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/nelyj/mercado_ripley.