/iww

The One Big Union ruby Library

Primary LanguageRubyMIT LicenseMIT

I.W.W. One Big Union

The Indistrial Workers of the World represent workers from a host of backgrounds and occupations brought together in the struggle for better conditions for all.

more info

Installation

bundle

bundle add iww

gem

gem install iww

build

gem build iww.gemspec

Usage

First, require the library:

require 'iww'

Preample

The I.W.W. Constitution preamble.

Iww.preamble

Join Link

A helpful link to become a member.

Iww.join!

Images

The red and white logos, and the seal.

Iww.image

Jobs

A list of represented jobs and industries.

Iww.jobs

Search

Find the appropriate division based upon search.

##
# search object
Iww[123]            # Search by division number.
Iww["123"]          # Search by division number from a string.
Iww[:job]    # Search by job as symbol.
Iww["division"]       # Search by division as string.

...

##
# returns a hash with key of the divison number as a string and the division description also as a string.
{ "123" => "Division" }

Interactive

You can also run ruby bin/console for an interactive prompt that will allow you to experiment.