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.
bundle add iww
gem install iww
gem build iww.gemspec
First, require the library:
require 'iww'
The I.W.W. Constitution preamble.
Iww.preamble
A helpful link to become a member.
Iww.join!
The red and white logos, and the seal.
Iww.image
A list of represented jobs and industries.
Iww.jobs
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" }
You can also run ruby bin/console
for an interactive prompt that will allow you to experiment.