Sha256: b4fd40117251c6aa3391b9b4af670a16c10971c785df7b77374b7c94bf20e022
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
# GameOfThronesApi Something for *Game of Thrones* & *A Song of Fire and Ice* fans. API Wrapper using [An API Of Ice And Fire](https://anapioficeandfire.com/) Still In developement. Basic Functionality. Find Books, Characters and Houses. ##### TODO: Better filtering, incorporate pagination, complete API functionality and of course tests. ## Installation Add this line to your application's Gemfile: ```ruby gem 'game_of_thrones_api' ``` And then execute: $ bundle Or install it yourself as: $ gem install game_of_thrones_api ## Usage #### An API Of Ice And Fire is Public, no authentication required #### Retrieve Books ``` GameOfThronesApi.get_books ``` #### Find a single book ``` GameOfThronesApi.find_book('A Game of Thrones') ``` #### Retrieve Characters ``` GameOfThronesApi.get_characters ``` #### Find a character ``` GameOfThronesApi.find_book('Jon Snow') ``` #### Retrieve House ``` GameOfThronesApi.get_houses ``` #### Find a single book ``` GameOfThronesApi.find_house('targaryen') ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/jzntam/game_of_thrones_api. 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).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
game_of_thrones_api-0.1.0 | README.md |