Skip to content

Commit 09b58d8

Browse files
committed
Fixing spelling error, etc.
1 parent 5f67b2f commit 09b58d8

2 files changed

Lines changed: 19 additions & 23 deletions

File tree

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Cloudability
66
[![Coverage Status](https://coveralls.io/repos/ColbyAley/cloudability/badge.png)](https://coveralls.io/r/ColbyAley/cloudability)
77
[![Gem Version](https://badge.fury.io/rb/cloudability.png)](http://badge.fury.io/rb/cloudability)
88

9-
Ruby wrapper for the [Cloudability API](http://developers.cloudability.com/). Supports most of the public API endpoints, including some legacy ones such as bugets. Converts JSON responses to objects with Hashie::Mash.
9+
Ruby wrapper for the [Cloudability API](http://developers.cloudability.com/). Supports most public API endpoints, including some legacy ones such as budgets. Converts JSON responses to objects with Hashie::Mash.
1010

1111
This is the README for version 0.1.0 of the gem. v0.1.0 introduces a radically different interface. If you're still on v0.0.5, please refer to it's [README](https://github.com/ColbyAley/cloudability/tree/v0.0.5).
1212

@@ -37,8 +37,8 @@ Or install it yourself as:
3737

3838
You will need to generate an API token to use the API. Read more [here](https://support.cloudability.com/hc/en-us/articles/200311933-API-Setup-and-Documentation).
3939

40-
Feel free to shoot me an email at colby@cloudability.com if you have any questions or need help.
41-
40+
Feel free to shoot me an email at colby@aley.me if you have any questions or need help.
41+
4242
### Examples
4343

4444
@client = Cloudability::Client.new(auth_token: 'auth_token')
@@ -80,11 +80,6 @@ Feel free to shoot me an email at colby@cloudability.com if you have any questio
8080
@client.usage_measures # List measures supported by server
8181
@client.usage_filters # List filters supported by the server
8282

83-
## TODO:
84-
* Better tests!
85-
* More endpoints!
86-
* More awesomeness!
87-
8883
## Contributing
8984

9085
1. Fork it

lib/cloudability.rb

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@ module Cloudability
1616
class RequestError < StandardError; end
1717

1818
class Client
19-
include Cloudability::Client::BillingReports
20-
include Cloudability::Client::UsageReports
21-
include Cloudability::Client::CostReports
22-
include Cloudability::Client::Budgets
23-
include Cloudability::Client::Credentials
24-
include Cloudability::Client::Organizations
19+
include BillingReports
20+
include UsageReports
21+
include CostReports
22+
include Budgets
23+
include Credentials
24+
include Organizations
25+
2526
include HTTParty
2627

27-
def initialize(options={})
28-
raise ArgumentError, "You must provide an auth token" if options[:auth_token].nil?
29-
@auth_token = options[:auth_token]
28+
def initialize(opts={})
29+
raise ArgumentError, "You must provide an auth token" if opts[:auth_token].nil?
30+
@auth_token = opts[:auth_token]
3031
end
3132

3233
base_uri 'https://app.cloudability.com/api'
@@ -61,12 +62,12 @@ def convert_to_mashes(array)
6162
array.map { |element| Hashie::Mash.new(element) }
6263
end
6364

64-
def options(o={})
65-
o[:query] ||= {}
66-
o[:headers] ||= {}
67-
o[:headers]['User-Agent'] = "Cloudability-Ruby #{Cloudability::VERSION}"
68-
o[:query][:auth_token] = @auth_token
69-
o
65+
def options(opts={})
66+
opts[:query] ||= {}
67+
opts[:headers] ||= {}
68+
opts[:headers]['User-Agent'] = "Cloudability-Ruby #{Cloudability::VERSION}"
69+
opts[:query][:auth_token] = @auth_token
70+
opts
7071
end
7172

7273
end

0 commit comments

Comments
 (0)