aredotna / arena-rb

A Ruby interface to the Arena API.

Home Page:http://are.na

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 %>

About

A Ruby interface to the Arena API.

http://are.na

License:MIT License


Languages

Language:Ruby 100.0%