API wrapper for search yugioh card
Add this line to your application's Gemfile:
gem 'ygoprodeck'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ygoprodeck
First :
require 'ygoprodeck'
Fuzzy search : (RECOMMENDED)
Ygoprodeck::Fname.is(name card)
Normal search :
Ygoprodeck::Name.is(name card)
Random search :
Ygoprodeck::Card.random
List search :
Ygoprodeck::List.is(name card)
Archetype search :
Ygoprodeck::Archetype.is(name archetype)
All card sets :
Ygoprodeck::Card.sets
Banlist (TCG, OCG, GOAT) :
Ygoprodeck::Banlist.tcg
Ygoprodeck::Banlist.ocg
Ygoprodeck::Banlist.goat
Check Database Version :
Ygoprodeck::CheckDbVer.info
or look examples
Rate Limiting on the API is enabled. The rate limit is 20 requests per 1 second
- id - ID or Passocde of the card.
- name - Name of the card.
- type - The type of card you are viewing (Normal Monster, Effect Monster, Synchro Monster, etc).
- desc - Card description/effect.
- atk - The ATK value of the card.
- def - The DEF value of the card.
- level - The Level/RANK of the card.
- race - The card race which is officially called type (Spellcaster, Warrior, Insect, etc).
- attribute - The attribute of the card.
- id - ID or Passocde of the card.
- name - Name of the card.
- type - The type of card you are viewing (Spell Card or Trap Card).
- desc - Card description/effect.
- race - The card race which is officially called type for Spell/Trap Cards (Field, Equip, Counter, etc).
- scale - The Pendulum Scale Value.
- linkval - The Link Value of the card if it's of type "Link Monster".
- linkmarkers - The Link Markers of the card if it's of type "Link Monster". This information is returned as an array.
rake spec
Fork and Pull Request to contibuting https://github.com/rokhimin/ygoprodeck .
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Ygoprodeck project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.