Class: V1::UserSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/people/v1/user_serializer.rb

Instance Method Summary collapse

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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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