Created
April 26, 2016 21:14
-
-
Save craigquincy/3fd3cab981e9866cd52b0e59cd6b2313 to your computer and use it in GitHub Desktop.
gibbon gem retrieve lists and print id & name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gibbon = Gibbon::Request.new | |
data = Hashie::Mash.new gibbon.lists.retrieve(params: {"count": "200"}) | |
lists = data.lists | |
lists.each {|list| puts list.name + ' : ' + list.id} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment