Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added query options to posts.all

  • Loading branch information...
commit d899fde4dae41e6f74ef91090538229be4a0755f 1 parent 1e537a3
Henning authored

Showing 2 changed files with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 0  Gemfile
  2. +4 2 lib/pinboard/client.rb
1  Gemfile
@@ -4,4 +4,5 @@ platforms :jruby do
4 4 gem 'jruby-openssl', '~> 0.7'
5 5 end
6 6
  7 +
7 8 gemspec
6 lib/pinboard/client.rb
@@ -10,8 +10,10 @@ def initialize(options={})
10 10 :password => options[:password] }
11 11 end
12 12
13   - def posts
14   - options = { :basic_auth => @auth }
  13 + def posts(params={})
  14 + options = {}
  15 + options[:basic_auth] = @auth
  16 + options[:query] = params
15 17 posts = self.class.get('/posts/all', options)['posts']['post']
16 18 posts.map { |p| Post.new(Util.symbolize_keys(p)) }
17 19 end

0 comments on commit d899fde

Please sign in to comment.
Something went wrong with that request. Please try again.