Class: MtgDb::Parsers::GathererParser
- Inherits:
-
Mechanize::Page
- Object
- Mechanize::Page
- MtgDb::Parsers::GathererParser
- Includes:
- Constants
- Defined in:
- lib/mtg_db/parsers.rb
Constant Summary collapse
- DEBUG =
false
Constants included from Constants
Constants::MANA_COST_ABBREVIATIONS, Constants::PT_REGEX, Constants::SET_VERSION_REGEX
Instance Attribute Summary collapse
-
#cards ⇒ Object
readonly
Returns the value of attribute cards.
Instance Method Summary collapse
-
#initialize(uri = nil, response = nil, body = nil, code = nil) ⇒ GathererParser
constructor
A new instance of GathererParser.
Constructor Details
#initialize(uri = nil, response = nil, body = nil, code = nil) ⇒ GathererParser
Returns a new instance of GathererParser.
13 14 15 16 |
# File 'lib/mtg_db/parsers.rb', line 13 def initialize(uri = nil, response = nil, body = nil, code = nil) super(uri, response, body, code) @cards = parse_cards end |
Instance Attribute Details
#cards ⇒ Object (readonly)
Returns the value of attribute cards.
11 12 13 |
# File 'lib/mtg_db/parsers.rb', line 11 def cards @cards end |