Skip to content

Commit

Permalink
Merge pull request #22 from cesar0094/master
Browse files Browse the repository at this point in the history
Update Usage in README with the creation of the client
  • Loading branch information
intinig committed Apr 4, 2014
2 parents 95daa65 + 0db1800 commit 14b2d53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ Or install it yourself as:
```ruby
require 'lol'

client = Lol::Client.new "my_api_key", "euw"
# => <Lol::Client:0x007fd09d1abb00 @api_key="my_api_key", @region="euw">
client = Lol::Client.new "my_api_key", {region: "euw"}
# => <Lol::Client:0x000000020c0b28 @api_key="my_api_key", @region="euw", @cached=false>

# NEW! You can cache requests using Redis now
# ttl defaults to 900
client = Lol::Client.new "my_api_key", "euw", {redis: "redis://localhost:6379", ttl: 900}
client = Lol::Client.new "my_api_key", {region: "euw", redis: "redis://localhost:6379", ttl: 900}

# Available Requests
client.champion
Expand Down

0 comments on commit 14b2d53

Please sign in to comment.