Class: MtgRb::Artist
- Inherits:
-
Object
- Object
- MtgRb::Artist
- Defined in:
- lib/mtg_rb/artist.rb
Overview
This artist has contributed to one or more printings
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#printings ⇒ Object
readonly
Returns the value of attribute printings.
Instance Method Summary collapse
-
#initialize(name:, printings:) ⇒ Artist
constructor
A new instance of Artist.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/mtg_rb/artist.rb', line 4 def name @name end |
#printings ⇒ Object (readonly)
Returns the value of attribute printings.
4 5 6 |
# File 'lib/mtg_rb/artist.rb', line 4 def printings @printings end |