Module: Twirly::Serializers::User
- Included in:
- User
- Defined in:
- lib/twirly/serializers/user.rb
Instance Method Summary collapse
Instance Method Details
#as_json ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/twirly/serializers/user.rb', line 4 def as_json { user: { id: id, username: username, full_name: full_name, bio: bio, avatar_url: avatar_url, } } end |
#to_json ⇒ Object
15 16 17 |
# File 'lib/twirly/serializers/user.rb', line 15 def to_json as_json.to_json end |