GeneralScripting / pipedrive-ruby

31 stars 148 forks source link

Multiple accounts #17

Open mamarjan opened 10 years ago

mamarjan commented 10 years ago

I have a requirement to support multiple Pipedrive accounts at the same time. As far as I can see, and based on some tests, this gem saves the token in a class variable, which makes it global, and impossible to support multiple accounts.

Please let me know if I'm wrong about this.

Also, please let me know if there is a plan with regard to adding support for multiple accounts, and how you would go about it. I'll fork the repo now and figure out a way to get what I need, but I would of course like it more if it can be reused (merged back).

Thanks

nononoy commented 8 years ago

hi, i made some changes you asked about - https://github.com/nononoy/pipedrive-ruby. Original gem with some scratches