# frozen_string_literal: true require 'rom-repository' module EuchreCamp module Repositories class Matches < ::EuchreCamp::Repository[:matches] commands :create, update: :by_pk, delete: :by_pk def all matches.to_a end def by_id(id) matches.by_pk(id).one! end end end end