Class: MtgApi::Utilities::SetLinks

Inherits:
Object
  • Object
show all
Defined in:
lib/mtg_api/utilities/set_links.rb

Overview

stores the links to the cards or booster of a set

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ SetLinks

store the given values



11
12
13
14
# File 'lib/mtg_api/utilities/set_links.rb', line 11

def initialize(args = {})
  self.cards = args[:cards]
  self.booster = args[:booster]
end

Instance Attribute Details

#boosterObject

the urls



8
9
10
# File 'lib/mtg_api/utilities/set_links.rb', line 8

def booster
  @booster
end

#cardsObject

the urls



8
9
10
# File 'lib/mtg_api/utilities/set_links.rb', line 8

def cards
  @cards
end