Cloudability ![Build Status](https://camo.githubusercontent.com/ac10e431f01d4ffe10d09e0285f7d7b70d117882067784c3923c08f8f0262539/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f726b6976652f636c6f75646162696c6974792e706e67)
Ruby wrapper for the Cloudability API using httparty.
Installation
Add this line to your application's Gemfile:
gem 'cloudability'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cloudability
Usage
Covers endpoints:
- credentials
- budgets
- and partial billing_reports
Credential Endpoint:
Caputure an array containing all your Cloud Accounts
credentials = Cloudability::Credentials.new(:auth_token => 'xxxxxxxxxxxxxxxxxxxx')
all_credentials = credentials.find_all
first_account = all_credentials.first
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
puts first_account.id
puts first_account.is_duplicate
puts first_account.nickname
puts first_account.state
puts first_account.updated_at
puts first_account.vendor_id
puts first_account.vendor_key
TODO:
- finish report by and filter by options.
- Refactor!
- More Docs!
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