class ActiveModel::Serializer

def attributes(*attrs)

Define attributes to be used in the serialization.
def attributes(*attrs)
  self._attributes = _attributes.dup
  attrs.each do |attr|
    attribute attr
  end
end