scaleflex / cloudimage-rb

Official Ruby API wrapper for Cloudimage's API. Any questions or issues, please report to https://github.com/scaleflex/cloudimage-rb/issues
Other
4 stars 1 forks source link

Configure token from ENV #4

Closed janklimo closed 4 years ago

janklimo commented 4 years ago

If we don't pass token into the initializer, we can omit the call to new and introduce this syntax:

Cloudimage::Client.path('/assets/image.png')

This will automatically create a new client with token initialized from ENV.