<section class="hero-banner">
  <div class="container clearfix">
    <div class="quote-box">
      <h1>google-cloud</h1>
      <p>The Google Cloud client library for Ruby
      - an idiomatic, intuitive, and natural way for Ruby developers to
      integrate with Google Cloud Platform services, like Cloud Datastore
      and Cloud Storage.</p>
    </div>

    <div class="quote-box--supplementary">
      <h2>One-line install</h2>
      <pre>$ gem install google-cloud</pre>
      <h4 class="latest-release subtle" ng-if="home.latestRelease">
        Latest Release <a ng-href="{{home.latestRelease.link}}" class="latest-release--link white">{{home.latestRelease.name}}</a>
        {{home.latestRelease.date|date}}
      </h4>
    </div>
  </div><!-- end of .container -->
</section><!-- end of .hero-banner -->

<section class="block featuring">
  <div class="container">
    <ul class="featuring-links">
      <li>
        <a href="#/docs/{{home.module.name}}/{{home.module.version}}/{{home.module.service}}" title="google-cloud-ruby docs" class="btn btn-docs">
          <img src="src/images/icon-lang-ruby-gray.svg" alt="Ruby icon" />
          Read the Docs
        </a>
      </li>
      <li>
        <a href="https://github.com/GoogleCloudPlatform/google-cloud-ruby" title="google-cloud-ruby on GitHub" class="ext-link">
          <img src="src/images/icon-link-github.svg" alt="GitHub icon" />
          GitHub
        </a>
      </li>
      <li>
        <a href="https://github.com/GoogleCloudPlatform/google-cloud-ruby/issues" title="google-cloud-ruby issues on Github" class="ext-link">
          <img src="src/images/icon-link-issues.svg" alt="GitHub icon" />
          Issues
        </a>
      </li>
      <li>
        <a href="http://stackoverflow.com/questions/tagged/google-cloud-platform+ruby" title="google-cloud-ruby on StackOverflow" class="ext-link">
          <img src="src/images/icon-link-stackoverflow.svg" alt="StackOverflow icon" />
          StackOverflow
        </a>
      </li>
      <li>
        <a href="http://rubygems.org/gems/gcloud" title="RubyGems" class="ext-link">
          <img src="src/images/icon-link-rubygems.svg" alt="RubyGems icon" />
          RubyGems
        </a>
      </li>
    </ul>
  </div><!-- end of .container -->
</section><!-- end of .featuring -->

<section class="block about">
  <div class="container clearfix">
    <div class="quote-box">
      <h3 class="block-title">What is it?</h3>

      <p>The google-cloud library is a client for accessing Google
      Cloud Platform services that significantly reduces the boilerplate
      code you have to write. The library provides high-level API
      abstractions so they're easier to understand. It embraces
      Ruby idioms, works well with the standard library, and
      integrates better with your codebase.
      All this means you spend more time creating code that matters
      to you.</p>

      <p>The google-cloud library is configured to access Google Cloud Platform
      services and authenticate (OAuth 2.0) automatically on your behalf.
      With a one-line install and a private key, you are up and ready
      to go. Better yet, if you are running on a Google Compute Engine
      instance, the one-line install is enough!</p>

    </div>

    <div class="quote-box--supplementary">
      <h4>Retrieve an entity from Cloud Datastore</h4>
      <div hljs hljs-language="ruby">
require "google/cloud"

gcloud = Google::Cloud.new "my-todo-project-id",
                           "/path/to/keyfile.json"
datastore = gcloud.datastore

product = datastore.find "Product", 123</div>

    </div>
  </div><!-- end of .container -->
</section><!-- end of .featuring -->

 <section class="block">
    <div class="container clearfix">
    <h3 class="block-title">FAQ</h3>

      <h4>What is the relationship between the google-cloud library and the gcloud command-line tool?</h4>

      <p>Both the gcloud command-line tool and google-cloud library are a part of the Google Cloud SDK: a collection of tools and libraries that enable you to easily create and manage resources on the Google Cloud Platform. The gcloud command-line tool can be used to manage both your development workflow and your Google Cloud Platform resources while the google-cloud library is the Google Cloud Client Library for Ruby.</p>

      <h4>What is the relationship between the google-cloud library and the Google APIs Ruby Client?</h4>

      <p>The <a href="https://github.com/google/google-api-ruby-client">Google APIs Ruby Client</a> is a client library for using the broad set of Google APIs. The google-cloud library is built specifically for the Google Cloud Platform and is the recommended way to integrate Google Cloud APIs into your Ruby applications. If your application requires both Google Cloud Platform and other Google APIs, the 2 libraries may be used by your application.</p>
    </div>
</section> <!-- end of FAQ -->
