```ruby
class MeSerializer < UserSerializer

  attributes :total_clouds, :read_terms, :using_default_avatar, :notifications

  def total_clouds
    object.cloud_ids.try(:size) || 0
  end

  def using_default_avatar
    not object.avatar.present?
  end

  def read_terms
    object.tnc_last_accepted.present?
  end

  def notifications
    0
  end

end
```

Include user email data in /me resource.
user
```ruby
class MeSerializer < UserSerializer

  attributes :total_clouds, :read_terms, :using_default_avatar, :notifications, :email, :email_verified

  def total_clouds
    object.cloud_ids.try(:size) || 0
  end

  def using_default_avatar
    not object.avatar.present?
  end

  def read_terms
    object.tnc_last_accepted.present?
  end

  def notifications
    0
  end

  def email_verified
    object.email_verified_at.present?
  end

end
```
assistant