Class: MtgRb::Artist

Inherits:
Object
  • Object
show all
Defined in:
lib/mtg_rb/artist.rb

Overview

This artist has contributed to one or more printings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, printings:) ⇒ Artist



5
6
7
8
# File 'lib/mtg_rb/artist.rb', line 5

def initialize(name:, printings:)
  @name = name
  @printings = printings
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/mtg_rb/artist.rb', line 4

def name
  @name
end

#printingsObject (readonly)

Returns the value of attribute printings.



4
5
6
# File 'lib/mtg_rb/artist.rb', line 4

def printings
  @printings
end