Created
May 3, 2016 08:43
-
-
Save OriPekelman/4e5e4805a4f891460bd5286e365abbe5 to your computer and use it in GitHub Desktop.
This file contains 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
require "rubygems" | |
require 'rmeetup' | |
client= RMeetup::Client.new({api_key: "getyourown"}) | |
results = client.fetch(:rsvps,{event_id: 229384168, urlname: "Paris-Datageeks"}) | |
members = results.select{|result|result.rsvp["response"]=="yes"}.map { |result| {name: result.rsvp["member"]["name"], image: result.rsvp["member_photo"].nil? ? "" : result.rsvp["member_photo"]["thumb_link"]}} | |
puts members.inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment