class V1::MatchSetSerializer
Serialize a MatchSet with the following attributes:
-
:scoring
-
:state
-
:winner
-
:games
Public Instance Methods
games()
click to toggle source
Serialize the games of the set.
-
Returns :
-
array of V1::SetGameSerializer
-
# File app/serializers/v1/match_set_serializer.rb, line 15 def games V1::ApplicationArraySerializer.new(object.set_games, each_serializer: V1::SetGameSerializer) end
winner()
click to toggle source