Skip to content
Jahuty's Ruby client.
Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib/jahuty
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
jahuty-snippets.gemspec

README.md

snippets-ruby

Jahuty's Ruby client.

Installation

Add this line to your application's Gemfile:

gem 'jahuty-snippet'

And then execute:

$ bundle

Or install it yourself as:

$ gem install jahuty-snippets

Usage

Set your public API key:

Jahuty::Snippet.key = '1a2b3c4d5e1a2b3c4d5e'

Then, use the .get method to fetch a snippet:

<!doctype html>
<html>
<head>
    <title>Ruby example</title>
</head>
<body>
    <%= Jahuty::Snippet.get(123); %>
</body>

Contributing

Bug reports and pull requests are welcome on GitHub.

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.