# frozen_string_literal: true class UserSerializer < SimpleSerializer attribute :id, :integer attribute :name, :string attribute :email, :string def name "foibar" end end