Class: V1::UserSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- V1::UserSerializer
- Defined in:
- app/serializers/people/v1/user_serializer.rb
Instance Method Summary collapse
- #include_associations! ⇒ Object
- #include_attempts? ⇒ Boolean
- #include_confirmed? ⇒ Boolean
- #include_created_at? ⇒ Boolean
- #include_email? ⇒ Boolean
- #include_id? ⇒ Boolean
- #include_locked? ⇒ Boolean
- #include_password_digest? ⇒ Boolean
- #include_updated_at? ⇒ Boolean
- #include_username? ⇒ Boolean
Instance Method Details
#include_associations! ⇒ Object
56 57 58 |
# File 'app/serializers/people/v1/user_serializer.rb', line 56 def include_associations! include! :tokens if ::Authorization::People::V1::User.include_tokens?(current_user,object,@options) end |
#include_attempts? ⇒ Boolean
44 45 46 |
# File 'app/serializers/people/v1/user_serializer.rb', line 44 def include_attempts? return ::Authorization::People::V1::User.include_attempts?(current_user,object,@options) end |
#include_confirmed? ⇒ Boolean
36 37 38 |
# File 'app/serializers/people/v1/user_serializer.rb', line 36 def include_confirmed? return ::Authorization::People::V1::User.include_confirmed?(current_user,object,@options) end |
#include_created_at? ⇒ Boolean
48 49 50 |
# File 'app/serializers/people/v1/user_serializer.rb', line 48 def include_created_at? return ::Authorization::People::V1::User.include_created_at?(current_user,object,@options) end |
#include_email? ⇒ Boolean
24 25 26 |
# File 'app/serializers/people/v1/user_serializer.rb', line 24 def include_email? return ::Authorization::People::V1::User.include_email?(current_user,object,@options) end |
#include_id? ⇒ Boolean
20 21 22 |
# File 'app/serializers/people/v1/user_serializer.rb', line 20 def include_id? return ::Authorization::People::V1::User.include_id?(current_user,object,@options) end |
#include_locked? ⇒ Boolean
40 41 42 |
# File 'app/serializers/people/v1/user_serializer.rb', line 40 def include_locked? return ::Authorization::People::V1::User.include_locked?(current_user,object,@options) end |
#include_password_digest? ⇒ Boolean
32 33 34 |
# File 'app/serializers/people/v1/user_serializer.rb', line 32 def include_password_digest? return ::Authorization::People::V1::User.include_password_digest?(current_user,object,@options) end |
#include_updated_at? ⇒ Boolean
52 53 54 |
# File 'app/serializers/people/v1/user_serializer.rb', line 52 def include_updated_at? return ::Authorization::People::V1::User.include_updated_at?(current_user,object,@options) end |
#include_username? ⇒ Boolean
28 29 30 |
# File 'app/serializers/people/v1/user_serializer.rb', line 28 def include_username? return ::Authorization::People::V1::User.include_username?(current_user,object,@options) end |