If you mean @res, it doesn't do anything  - I used it for debug, but can be
changed now.


On Sun, Feb 2, 2014 at 1:37 AM, Hsing-Hui Hsu <notifications@github.com>wrote:

> In app/controllers/posts_controller.rb:
>
> > +    @search = []
> > +
> > +    @res = GithubAuthor.client.search_users(params[:github_search])
> > +    @res.items.each do |item|
> > +
> > +      user = item.rels[:self].get.data
> > +      httparty_response = HTTParty.get("https://api.github.com/users/#{user.login}", :headers => {"User-Agent" => "rss-peep"})
> > +      user = {
> > +        avatar: httparty_response["avatar_url"],
> > +        id: user.id,
> > +        username: user.login,
> > +        link: httparty_response["html_url"]
> > +      }
> > +      @search << user
> > +    end
> > +    @search
>
> What does this instance variable do?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/suewhite/See-More/pull/86/files#r9369103>
> .
>