Allow for query parameter on has_many :videos

@claudiofullscreen Would love to get your thoughts.

I'm trying to replace youtube_it with YT on accounts, but currently the only missing piece is querying for videos.

This allows for the following usage (tested on my account):

```ruby
YT::Account.new(credentials).videos.map &:title
 => ["asdf",  "Vegas Indoor Skydiving", "Swing", "UCSD Dance by the Shores Adv. Hustle"]

YT::Account.new(credentials).videos(q: 'vegas').map &:title
=> ["Vegas Indoor Skydiving"]
```

Wanted to get your thoughts before i spend time fixing specs.
I'll look at it now


On Tue, Jun 10, 2014 at 2:52 PM, Sean Stavropoulos <notifications@github.com
> wrote:

> In lib/yt/collections/videos.rb:
>
> > @@ -13,7 +18,14 @@ def new_item(data)
> >
> >        def list_params
> >          super.tap do |params|
> > -          params[:params] = {channelId: @parent.id, type: :video, maxResults: 50, part: 'snippet'}
> > +          params[:params] = {type: :video, maxResults: 50, part: 'snippet'}
> > +
> > +          if @parent.auth == @auth
> > +            params[:params].merge! forMine: true, q: @q
>
> the q parameter doesn't work if you also specify a channelId... why? No
> idea. this isn't specified in the docs
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Fullscreen/yt/pull/8/files#r13622141>.
>



-- 


 Claudio Baccigalupo  | Software Writer  |  Fullscreen, Inc.
<http://Fullscreen.net>  |  +1.310.202.3333