I'm using Octokit.rb to search GitHub users and the response returns a Sawyer::Resource object. I'm currently accessing the data this way:
[].tap do |users|
@results.items.each do |item|
user = item.rels[:self].get.data
user = {
location: user.location,
username: user.login,
name: user.name,
email: user.email
}
users << user
end
end
I'd like to iterate over the users array created and display the results, however, right now the method takes extremely long as a result of accessing the data thru #rels[:self].get.data and I'm not sure what to do. Any help would be greatly appreciated!