README.md in iex-ruby-client-0.1.0 vs README.md in iex-ruby-client-0.2.0
- old
+ new
@@ -21,20 +21,37 @@
### Get a Quote
Fetches a single stock quote.
```ruby
-quote = IEX::Quote.get('MSFT')
+quote = IEX::Resources::Quote.get('MSFT')
quote.latest_price # 90.165
quote.change # 0.375
quote.change_percent # 0.00418
quote.change_percent_s # '+0.42%'
```
-See [#quote](https://iextrading.com/developer/docs/#quote) for detailed documentation or [quote.rb](lib/iex/quote.rb) for returned fields.
+See [#quote](https://iextrading.com/developer/docs/#quote) for detailed documentation or [quote.rb](lib/iex/resources/quote.rb) for returned fields.
+### Get Company Information
+
+Fetches company information for a symbol.
+
+```ruby
+company = IEX::Resources::Company.get('MSFT')
+
+company.ceo # 'Satya Nadella'
+company.company_name # 'Microsoft Corporation'
+```
+
+See [#company](https://iextrading.com/developer/docs/#company) for detailed documentation or [company.rb](lib/iex/resources/company.rb) for returned fields.
+
+## Errors
+
+### SymbolNotFound
+
If a symbol cannot be found an [IEX::Errors::SymbolNotFound](lib/iex/errors/symbol_not_found_error.rb) exception is raised.
## Contributing
See [CONTRIBUTING](CONTRIBUTING.md).
@@ -43,6 +60,6 @@
Copyright (c) 2018, [Daniel Doubrovkine](https://twitter.com/dblockdotorg) and [Contributors](CHANGELOG.md).
This project is licensed under the [MIT License](LICENSE.md).
-Data provided for free by [IEX](https://iextrading.com/developer), see [terms](https://iextrading.com/api-exhibit-a).
+Data provided for free by [IEX](https://iextrading.com/developer), see [terms](https://iextrading.com/api-terms).