README.md in lelylan-rb-0.0.2 vs README.md in lelylan-rb-0.0.3
- old
+ new
@@ -34,12 +34,11 @@
## Getting started
### Require Gem
```ruby
-require 'rubygems'
-require 'lelylan-rb'
+require 'lelylan'
require 'oauth2'
```
### Get an access token
@@ -199,10 +198,10 @@
Through the error message attribute you can access the error information.
```ruby
begin
@type = Lelylan::Type.type("https://type.lelylan.com/types/wrong")
-rescue Lelylan::NotFound => e
+rescue Lelylan::Error => e
puts "The resource #{e.message.error.uri} was not found"
end
```
Learn more about the [error response structure](http://dev.lelylan.com/api/core#errors).