Class: Deck::Card
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Deck::Card
- 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 |