Yup!
—
Sent from Mailbox for iPhone

On Thu, Apr 11, 2013 at 7:59 PM, Robert J Samson <notifications@github.com>
wrote:

>> +    args = process_filters(filters)
>> +    uri = URI(URI.escape("#{Sunlight::Congress::BASE_URI}/bills?apikey=#{Sunlight::Congress.api_key}#{args}"))
>> +
>> +    new(JSON.load(Net::HTTP.get(uri)), uri)
>> +  end
>> +
>> +  private
>> +  def self.process_filters(filters)
>> +    opts = ""
>> +    if filters.any?
>> +      filters.each do |k,v|
>> +        opts << "&#{k}=#{v}"
>> +      end
>> +    end
>> +
>> +    opts
> Do you mean something like this?
> ```ruby
> filters.inject('') { |str, arr| query << "&#{arr[0]}=#{arr[1]}" }
> ```
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/steveklabnik/sunlight-congress/pull/14/files#r3766167