Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby API/wrapper for Google Sets
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
README.md
google_sets.rb

README.md

Google Sets

This is a very small library that provides a wrapper for Google Sets.

I plan to make a command line tool very soon (need to sleep now!) to get sets and choose a random item from a set from the console.

For now here is some usage examples:

set = GoogleSet.new('titania', 'oberon', 'romeo')

puts set   ### Outputs:
           # romeo
           # oberon
           # daphne
           # delfinen
           # zwaardvis
           # agosta
           # dolfijn
           # narvahlen
           # kilo
           # upholder

set.rand   # => agosta
set[8]     # => kilo
set.size   # => 10
set.to_a   # => ["romeo", "oberon", "daphne", "delfinen", "zwaardvis", 
           #     "agosta", "dolfijn", "narvahlen", "kilo", "upholder"]
Something went wrong with that request. Please try again.