Closed motdotla closed 8 years ago
It is definitely possible all it is is changing up payload form, and methods. Should not be too hard to abstract those things.
I noticed DigitalOcean created their own digitialocean/droplet_kit gem. Overall I still like this gem but one nice thing about theirs is that it is instance based instead of a singleton object.
As a design goal for the next major release could we consider having instances of a client
object instead of having to set your client_id
and api_key
directly on the Digitalocean
constant?
Thank you for all of your hard work on this!
@rbishop I think you are correct here too. I generally agree.
This has been almost a year since I cared for this. I'm opting to just leave it at V1 and point people to the official V2 gem.
Hey guys, particularly maintainers, as you've likely heard DO moved their V2 API out to beta. It's RESTful, more secure, and does pagination well.
Part of the magic of this repo was that it was heavily metaprogrammed. It allowed someone to easily add new endpoints with very little knowledge of the library.
In large part that was thanks to DO's V1 API - which I actually ended up loving despite not following generally accepted RESTful practices.
So, let's discuss moving this to V2. I think we'd all like to take a similar metaprogrammed approach if possible. Is it possible with the new V2 API?