Sha256: 2ff6487ae49b995b8a21fa7cb2a2b53390820e98b3325ff7e9d0f3c8752fd1d4
Contents?: true
Size: 426 Bytes
Versions: 1
Compression:
Stored size: 426 Bytes
Contents
module Serializers::Users class User include RestPack::Serializer self.model_class = Models::Users::User self.key = :users attributes :id, :application_id, :description, :email, :image, :avatar, :location, :name, :nickname, :href can_include :authentications can_filter_by :application_id def avatar image || "http://robohash.org/#{id}.png?size=200x200" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restpack_user_service-0.0.5 | lib/restpack_user_service/serializers/user.rb |