2014-09-05 00:20:39 -05:00
|
|
|
class TrustLevel3RequirementsSerializer < ApplicationSerializer
|
2014-01-23 15:40:10 -06:00
|
|
|
attributes :time_period,
|
2014-06-26 12:48:07 -05:00
|
|
|
:requirements_met,
|
2014-09-13 15:55:26 -05:00
|
|
|
:requirements_lost,
|
|
|
|
:trust_level_locked, :on_grace_period,
|
2014-01-23 15:40:10 -06:00
|
|
|
:days_visited, :min_days_visited,
|
|
|
|
:num_topics_replied_to, :min_topics_replied_to,
|
2014-06-26 12:48:07 -05:00
|
|
|
:topics_viewed, :min_topics_viewed,
|
|
|
|
:posts_read, :min_posts_read,
|
2014-07-01 12:34:48 -05:00
|
|
|
:topics_viewed_all_time, :min_topics_viewed_all_time,
|
|
|
|
:posts_read_all_time, :min_posts_read_all_time,
|
2014-06-27 11:26:03 -05:00
|
|
|
:num_flagged_posts, :max_flagged_posts,
|
2014-08-22 16:33:05 -05:00
|
|
|
:num_flagged_by_users, :max_flagged_by_users,
|
|
|
|
:num_likes_given, :min_likes_given,
|
2014-10-07 14:52:54 -05:00
|
|
|
:num_likes_received, :min_likes_received,
|
|
|
|
:num_likes_received_days, :min_likes_received_days,
|
|
|
|
:num_likes_received_users, :min_likes_received_users
|
2014-06-27 11:26:03 -05:00
|
|
|
|
|
|
|
def time_period
|
2014-09-05 00:20:39 -05:00
|
|
|
TrustLevel3Requirements::TIME_PERIOD
|
2014-06-27 11:26:03 -05:00
|
|
|
end
|
2014-06-26 12:48:07 -05:00
|
|
|
|
|
|
|
def requirements_met
|
|
|
|
object.requirements_met?
|
|
|
|
end
|
2014-09-13 15:55:26 -05:00
|
|
|
|
|
|
|
def requirements_lost
|
|
|
|
object.requirements_lost?
|
|
|
|
end
|
2014-01-22 16:09:56 -06:00
|
|
|
end
|