title: How do I use another gem as a dependency and create a class that inherits from it
body: <p>I'm trying to create a gem, that wraps some external API calls, and I want to use a gem called 'api-blueprint'</p>
  <p>I already added as a dependency on my gemspec file
  <code>spec.add_runtime_dependency 'api-blueprint'</code>.</p>
  <p>and now I want some of my classes to inherit from it</p>
  <pre><code>module MyGem
    class Request &lt; ApiBlueprint::Model
      ... code ...
    end
  end
  </code></pre>
  <p>And I get an error</p>
  <pre><code>NameError:
    uninitialized constant MyGem::ApiBlueprint
  </code></pre>
  <p>And I'm not sure how can I inherit from a dependency without appending my gem name to the namespace. I also tried without wrapping it inside a module, but I get the same issue, albeit without <code>MyGem</code> namespace.</p>
  <p>I used this gem inside a rails app, with the same use without problems, but now I need to refactor that logic out of the rails app into a gem.</p>
  <p>I also tried to require both as <code>api_blueprint</code> and <code>api-blueprint</code> the latter returning this error</p>
  <pre><code>Failure/Error: require &quot;api-blueprint&quot;
  
  ArgumentError:
    wrong number of arguments (given 2, expected 0)
  </code></pre>
  <p>and the former just returning a LoadError.
  I'm not sure what seems to be the issue here, do I need to include elsewhere besides the gemspec file? Note that I also use <code>spec.add_dependency</code> but I got the same issues. I'm a bit lost here, this is my first go at a rubygem</p>
  <p>Thanks for the attention :)</p>