Skip to content
A Ruby interface to the Arena API.
Ruby
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.
lib
test
.gitignore
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
arena.gemspec

README.md

Build Status

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 https://dev.are.na.

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 %>
You can’t perform that action at this time.