Ruby wrapper for the Cloudability API.
Installation
Add this line to your application's Gemfile:
gem 'cloudability'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cloudability
Usage
Supported endpoints:
- Credentials
- Budgets
- Reporting
- Organizations (Including invitations and roles.)
Feel free to shoot me an email at [email protected] if you have any questions or need help.
Credentials
Retrieve an array containing all your Cloud Accounts.
credentials = Cloudability::Credentials.new(auth_token: 'xxxxxxxxxxxxxxxxxxxx')
all_credentials = credentials.find_all
puts first_account.account_created_at
puts first_account.account_identifier
puts first_account.created_at
puts first_account.has_auth
puts first_account.has_estimate
Organizations
c = Cloudability::Organizations.new(auth_token: 'xxxxxxxxxxxxxxxxxxxx')
c.invite_user(email: '[email protected]', name: 'Colby Aley')
c.roles
c.invitations
TODO:
- More tests!
- More endpoints!
- More awesomeness!
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
