Class: MtgDb::Parsers::GathererParser

Inherits:
Mechanize::Page
  • Object
show all
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

Instance Method Summary collapse

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

#cardsObject (readonly)

Returns the value of attribute cards.



11
12
13
# File 'lib/mtg_db/parsers.rb', line 11

def cards
  @cards
end