I added a comment to hopefully make this clearer.


On Mon, Sep 9, 2013 at 3:53 PM, Sam Beam <notifications@github.com> wrote:

> In lib/reviewed/client.rb:
>
> > @@ -54,7 +54,9 @@ def resource(name)
> >      end
> >
> >      def method_missing(method, *args, &block)
> > -      Reviewed::Request.new(resource: resource(method), client: self)
> > +      opts = { client: self, resource: resource(method) }
> > +      opts = opts.merge!(args[0]) if args[0]
>
> so args[0] would be the parameters here, like 'with_pages' => true, etc?
> might be worth commenting or using api_params or something as the var
> name?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/reviewed/reviewed-api-ruby/pull/5/files#r6248829>
> .
>