Skip to content

Commit

Permalink
modified readme
Browse files Browse the repository at this point in the history
  • Loading branch information
intinig committed Dec 11, 2013
1 parent abd28b2 commit 67279f0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,21 @@ Or install it yourself as:

require 'lol'

# defaults to euw
client = Lol::Client.new "my_api_key"
#<Lol::Client:0x007fd09d1abb00 @api_key="my_api_key", @region="euw">

# na
na_client = Lol::Client.new "my_api_key", :region => "na"
# => <Lol::Client:0x007fd09d1abb00 @api_key="my_api_key", @region="na">

# gets all champions
champions = client.champion
# => Array of Lol::Champion

# let's play a bit, who is free to play?
client.champion.select {|c| c.free_to_play }.map {|c| c.name}
# => %w(Aatrox Cassiopeia Lux Malphite MissFortune MonkeyKing Nautilus Sivir Talon Taric)
## Contributing

1. Fork it
Expand Down

0 comments on commit 67279f0

Please sign in to comment.