Class: V1::UserSerializer

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

Instance Method Summary collapse

Instance Method Details

#include_associations!Object



35
36
37
38
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 35

def include_associations!
  #include! :bulletin if ::Authorization::Fbuser::V1::User.include_bulletin?(current_user,object,@options)
  #include! :posts if ::Authorization::Fbuser::V1::User.include_posts?(current_user,object,@options)
end

#include_created_at?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 27

def include_created_at?
  return ::Authorization::Fbuser::V1::User.include_created_at?(current_user,object,@options)
end

#include_fb_user_id?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 23

def include_fb_user_id?
  return ::Authorization::Fbuser::V1::User.include_created_at?(current_user,object,@options)
end

#include_id?Boolean

has_one :bulletin has_many :posts

Returns:

  • (Boolean)


15
16
17
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 15

def include_id?
	return ::Authorization::Fbuser::V1::User.include_id?(current_user,object,@options)
end

#include_updated_at?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 31

def include_updated_at?
  return ::Authorization::Fbuser::V1::User.include_updated_at?(current_user,object,@options)
end

#include_username?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 19

def include_username?
  return ::Authorization::Fbuser::V1::User.include_created_at?(current_user,object,@options)
end