Class: Deck::Card

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/deck/card.rb

Instance Method Summary collapse

Instance Method Details

#to_json(_ = nil) ⇒ Object



16
17
18
19
# File 'lib/deck/card.rb', line 16

def to_json(_ = nil)
  { title: title,
    description: description }.to_json
end