education/classroom

View on GitHub
app/serializers/group_assignment_repo_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class GroupAssignmentRepoSerializer < ActiveModel::Serializer
  attributes :id
  attributes :username
  attributes :displayName

  def username
    object.group.title
  end

  # rubocop:disable MethodName
  def displayName
    ""
  end
  # rubocop:enable MethodName
end