A Ruby interface to the Arena API.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore Adds debug file Mar 12, 2013
Gemfile
LICENSE init Jul 9, 2012
README.md
Rakefile
arena.gemspec Update URLs Aug 10, 2013

README.md

Arena

Installation

Add this line to your application's Gemfile:

gem 'arena'

And then execute:

$ bundle

Or install it yourself as:

$ gem install arena

Usage

Register an application at http://dev.aredotna.com

Configure for personal use (optional; be aware this grants access to everything your account has access to)

Arena.configure do |config|
    config.access_token = 'XXXXXXXXXXXXX'
end

Simple usage example

@channel = Arena.channel(params[:id])
<% @channel.contents.each do |connectable| %>
    <%= connectable.title %>
    <% if connectable.has_image? %>
        <img src="<%= connectable.image.display.url %>" alt="<%= connectable.title %>" />
    <% end %>
<% end %>