README.md in bungie_client-2.0.1 vs README.md in bungie_client-2.1.0
- old
+ new
@@ -24,71 +24,59 @@
### BungieClient::Client
It's main class that makes possible to send any requests to Bungie.
-**For this you should initialize your client for the next example:**
+**For this You should initialize your client for the next example:**
~~~~ruby
client = BungieClient::Client.new :api_key => 'YOUR_API_KEY'
~~~~
* The option `api_key` only necessary for this class and API. For getting API key, please visit the [bungie page](https://www.bungie.net/en/user/api).
-* After it you can send your request to [Bungie Endpoint](http://destinydevs.github.io/BungieNetPlatform/docs/Endpoints).
-* The full information about classes and modules and their methods you can find in yard-comments and [rubydoc](http://www.rubydoc.info/gems/bungie_client).
+* After it You can send your request to [Bungie Endpoint](http://destinydevs.github.io/BungieNetPlatform/docs/Endpoints).
+* The full information about classes and modules and their methods You can find in yard-comments and [rubydoc](http://www.rubydoc.info/gems/bungie_client).
#### How it initialized:
-* If you want to use private API, you must get [Authorization token](https://www.bungie.net/en/Help/Article/45481) from Bungie Oauth2 and set `token` option.
+* If You want to use private API, You must get [Authorization token](https://www.bungie.net/en/Help/Article/45481) from Bungie Oauth2 and set `token` option.
* After this operations your client is done for usage.
#### Sending requests
-**Now you can send requests, e.g. for finding user information and getting his profile:**
+**Now You can send requests, e.g. for finding user information and getting his profile:**
~~~~ruby
client.get "Destiny/SearchDestinyPlayer/2/RuBAN-GT"
~~~~
#### Note
-* For requests optimization you should use any caching of your requests.
+* For requests optimization You should use any caching of your requests.
-### BungieClient::Wrappers::Default
+### BungieClient::Wrapper
-If you don't like long code as for me you should use **Wrappers**. It's classes can call api services with dynamically generated methods with snake case like name services. Also it can change url parameters to needed values and in inherits of this class it can be do automatically.
+If You don't like long code as for me You should use **BungieClient::Wrapper**. It's class can call api services with dynamically generated methods with snake case like name services. Also it can change url parameters to needed values.
-The initialization of **Wrappers::Default** is similar to **Client**: all arguments of initializer will be passed to **Client** which is class variable of wrapper.
+The initialization of **Wrapper** is similar to **Client**: all arguments of initializer will be passed to **Client** which is class variable of wrapper.
~~~~ruby
-wrapper = BungieClient::Wrappers::Default.new :api_key => 'YOUR_API_KEY'
+wrapper = BungieClient::Wrapper.new :api_key => 'YOUR_API_KEY'
~~~~
-Now you can sending your requests with beautiful and effective code:
+Now You can sending your requests with beautiful and effective code:
~~~~ruby
wrapper.search_destiny_player :membershipType => '2', :displayName => 'RuBAN-GT'
~~~~
-If you need **more** you can define your own wrappers such as **Wrappers::User**:
-
-~~~~ruby
-user = BungieClient::Wrappers::User.new(
- :api_key => 'YOUR_API_KEY',
- :display_name => 'RuBAN-GT',
- :membership_type => '2'
-)
-
-@user.search_destiny_player
-~~~~
-
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/RuBAN-GT/bungie_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
## Fireteam
-If you want to fight with Oryx with me or create any interesting applications for Destiny, you can add me ([https://www.bungie.net/en/Profile/254/12488384](https://www.bungie.net/en/Profile/254/12488384)).
+If You want to fight with Oryx with me or create any interesting applications for Destiny, You can add me ([https://www.bungie.net/en/Profile/254/12488384](https://www.bungie.net/en/Profile/254/12488384)).