Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add absolutely_all short-hand method #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/pipedrive/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def all(response = nil, options={},get_absolutely_all=false)
end
end

def absolutely_all(options = {})
self.all(nil, options, true)
end

def create( opts = {} )
res = post resource_path, :body => opts
if res.success?
Expand Down
6 changes: 3 additions & 3 deletions pipedrive-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = "pipedrive-ruby"
s.version = "0.3.3"
s.version = "0.3.4"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jan Schwenzien", "Waldemar Kusnezow", "Joel Courtney"]
s.date = "2014-04-23"
s.authors = ["Jan Schwenzien", "Waldemar Kusnezow", "Joel Courtney", "Ryan Faerman"]
s.date = "2014-06-26"
s.description = "Ruby wrapper for the Pipedrive API"
s.email = "[email protected]"
s.extra_rdoc_files = [
Expand Down