title: Consuming webhooks shopify-api
body: <p>I'm in the process of building my first RoR webapp and I'm currently trying to set up an integration with Shopify. I want to create an order in my web application whenever one is created in Shopify. For this I want to use a Shopify webhook. Step two will be to set it up so that after processing the order I'll use the Shopify API to update some records. For now my main concern is receiving the webhooks. I've been looking at the documentation for the Shopify gem but with my limited RoR skills I can't seem to figure it out. I've been searching the web for a few hours but can't find any clear examples / explanation. </p>
  
  <p>I'm confused about this gem; shopify-api (<a href="https://docs.shopify.com/api/authentication/using-api-gem-with-private-app-credentials" rel="nofollow">https://docs.shopify.com/api/authentication/using-api-gem-with-private-app-credentials</a>). I've created a private app in shopify, but after that I'm lost. Where am I supposed to place this code and how is this invoked after receiving a webhook? </p>
  
  <p>It seems to me that this gem is mainly used to access the Shopify API instead of consuming webhooks. Am I going at this all wrong? </p>