Spree-Wrap
Consume any compatible Spree API from Ruby Motion
Installation
Add this line to your application's Gemfile:
gem 'spree-wrap'
And then execute:
$ bundle
Or install it yourself as:
$ gem install spree-wrap
Usage
Within your application delegate or before accessing the API set the url to the endpoint.
Spree.endpoint = "http://example.com/api"
You can now query the API by using blocks.
Example:
Spree.products do |products|
# Do something when products are received
end
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
About the Author
Crowd Interactive is an American web design and development company that happens to work in Colima, Mexico. We specialize in building and growing online retail stores. We don’t work with everyone – just companies we believe in. Call us today to see if there’s a fit. Find more info here!