The way this is specified is very close to a case statement. In ruby, that looks like:

```ruby
suit = case @suit
when :hearts
  "H"
when :clubs
  "C"
when :spades
  "S"
when :diamonds"
 "D"
end
```

However, there's a slight problem here, that if the suit is something other than a `:hearts, :clubs, :spades:, :diamonds`, it will be nil and cause problems later down the line. So you might:

```ruby
suit = case @suit
when :hearts
  "H"
when :clubs
  "C"
when :spades
  "S"
when :diamonds
 "D"
else
  raise ArgumentError.new "Unsupported suit: #{suit}"
end
```