Class: WebHookUserSerializer
- Inherits:
-
UserSerializer
- Object
- ActiveModel::Serializer
- ApplicationSerializer
- BasicUserSerializer
- UserCardSerializer
- UserSerializer
- WebHookUserSerializer
- Defined in:
- app/serializers/web_hook_user_serializer.rb
Instance Attribute Summary
Attributes inherited from UserCardSerializer
Instance Method Summary collapse
- #external_id ⇒ Object
- #include_email? ⇒ Boolean (also: #include_secondary_emails?)
- #include_external_id? ⇒ Boolean
-
#staff_attributes(*attrs) ⇒ Object
remove staff attributes.
Methods inherited from UserSerializer
#allowed_pm_usernames, #bio_cooked, #bio_raw, #can_be_deleted, #can_change_bio, #can_change_location, #can_change_tracking_preferences, #can_change_website, #can_delete_all_posts, #can_edit, #can_edit_email, #can_edit_name, #can_edit_username, #can_ignore_users, #can_mute_users, #can_pick_theme_with_custom_homepage, #can_upload_profile_header, #can_upload_user_card_background, #custom_avatar_template, #custom_avatar_upload_id, #gravatar_avatar_template, #gravatar_avatar_upload_id, #group_users, #groups, #has_title_badges, #ignored_usernames, #include_associated_accounts?, #include_custom_avatar_template?, #include_custom_avatar_upload_id?, #include_gravatar_avatar_template?, #include_gravatar_avatar_upload_id?, #include_group_users?, #include_second_factor_backup_enabled?, #include_second_factor_enabled?, #include_second_factor_remaining_backup_codes?, #include_user_option?, #include_user_passkeys?, #mailing_list_posts_per_day, #muted_category_ids, #muted_usernames, #pending_count, #post_count, #profile_background_upload_url, #profile_view_count, #regular_category_ids, #second_factor_backup_enabled, #second_factor_enabled, #second_factor_remaining_backup_codes, #system_avatar_template, #system_avatar_upload_id, #tracked_category_ids, #use_logo_small_as_avatar, #user_api_keys, #user_auth_tokens, #user_notification_schedule, #user_passkeys, #watched_category_ids, #watched_first_post_category_ids
Methods included from UserSidebarMixin
#display_sidebar_tags, #include_display_sidebar_tags?, #include_sidebar_tags?, #sidebar_category_ids, #sidebar_tags
Methods included from NavigationMenuTagsMixin
Methods included from UserTagNotificationsMixin
#muted_tags, #regular_tags, #tag_user_notification_levels, #tags_with_notification_level, #tracked_tags, #watched_tags, #watching_first_post_tags
Methods inherited from UserCardSerializer
#bio_excerpt, #can_ignore_user, #can_mute_user, #can_send_private_message_to_user, #can_send_private_messages, #card_background_upload_url, #custom_fields, #featured_topic, #flair_bg_color, #flair_color, #flair_name, #flair_url, #ignored, #include_pending_posts_count?, #include_suspend_reason?, #include_suspended_till?, #include_timezone?, #include_topic_post_count?, #include_user_fields?, #initialize, #location, #muted, #primary_group_name, private_attributes, #recent_time_read, staff_attributes, #time_read, #timezone, untrusted_attributes, #user_fields, #website, #website_name
Methods included from UserStatusMixin
#include_status?, included, #status
Methods inherited from BasicUserSerializer
#avatar_template, #categories_with_notification_level, #category_user_notification_levels, #include_name?, #name, #user, #user_is_current_user
Methods inherited from ApplicationSerializer
expire_cache_fragment!, fragment_cache
Methods inherited from ActiveModel::Serializer
Constructor Details
This class inherits a constructor from UserCardSerializer
Instance Method Details
#external_id ⇒ Object
58 59 60 |
# File 'app/serializers/web_hook_user_serializer.rb', line 58 def external_id object.single_sign_on_record.external_id end |
#include_email? ⇒ Boolean Also known as: include_secondary_emails?
48 49 50 |
# File 'app/serializers/web_hook_user_serializer.rb', line 48 def include_email? scope.is_admin? end |
#include_external_id? ⇒ Boolean
54 55 56 |
# File 'app/serializers/web_hook_user_serializer.rb', line 54 def include_external_id? scope.is_admin? && object.single_sign_on_record end |
#staff_attributes(*attrs) ⇒ Object
remove staff attributes
7 8 |
# File 'app/serializers/web_hook_user_serializer.rb', line 7 def staff_attributes(*attrs) end |