Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby API/wrapper for Google Sets

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 README.md
Octocat-spinner-32 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.