jace_beleren
is a gem that wraps the api.deckbrew.com
API
Add this line to your application's Gemfile:
gem 'jace_beleren'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jace_beleren
Instantiate a client
require 'jace_beleren'
@client = JaceBeleren::API.new
Get all the cards
@client.get_all_cards
Get a specific card
@client.get_card('gold-myr')
Get sets
@client.get_sets
Get types
@client.get_types
Get super types
@client.get_supertypes
Get sub types
@client.get_subtypes
Get colors
@client.get_colors
Search for cards
@client.search('gold')
Bug reports and pull requests are welcome on GitHub at https://github.com/lucas-aragno/jace_beleren.
The gem is available as open source under the terms of the MIT License.