ozfortress/citadel

View on GitHub
app/serializers/api/v1/leagues/matches/round_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
module API
  module V1
    module Leagues
      module Matches
        class RoundSerializer < ActiveModel::Serializer
          type :round

          attributes :home_team_score, :away_team_score

          belongs_to :match, serializer: MatchSerializer
          belongs_to :map
        end
      end
    end
  end
end