Class: ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object
- Defined in:
- lib/moderation_api/models/webhook_event.rb
Overview
Defined Under Namespace
Modules: Status Classes: Block, Metadata, Metrics, RiskEvaluation, TrustLevel
Instance Attribute Summary collapse
-
#block ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Block?
Block or suspension details, if applicable.
-
#company ⇒ String?
The author’s company or organization.
-
#email ⇒ String?
Author email address.
-
#external_id ⇒ String?
The author’s ID from your system.
-
#external_link ⇒ String?
URL of the author’s external profile.
-
#first_seen ⇒ Float
Timestamp when author first appeared.
-
#id ⇒ String
Author ID in Moderation API.
-
#last_incident ⇒ Float?
Timestamp of last incident.
-
#last_seen ⇒ Float
Timestamp of last activity.
-
#metadata ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Metadata
Additional metadata provided by your system.
- #metrics ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Metrics
-
#name ⇒ String?
Author name or identifier.
-
#profile_picture ⇒ String?
URL of the author’s profile picture.
-
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::RiskEvaluation?
Risk assessment details, if available.
-
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Status
Current author status.
- #trust_level ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::TrustLevel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(risk_level: nil) ⇒ Object
constructor
Risk assessment details, if available.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(risk_level: nil) ⇒ Object
Risk assessment details, if available.
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 1753
|
Instance Attribute Details
#block ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Block?
Block or suspension details, if applicable. Null if the author is enabled.
1661 1662 1663 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1661 required :block, -> { ModerationAPI::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Block }, nil?: true |
#company ⇒ String?
The author’s company or organization
1715 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1715 optional :company, String, nil?: true |
#email ⇒ String?
Author email address
1721 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1721 optional :email, String, nil?: true |
#external_id ⇒ String?
The author’s ID from your system
1727 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1727 optional :external_id, String, nil?: true |
#external_link ⇒ String?
URL of the author’s external profile
1733 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1733 optional :external_link, String, nil?: true |
#first_seen ⇒ Float
Timestamp when author first appeared
1669 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1669 required :first_seen, Float |
#id ⇒ String
Author ID in Moderation API
1655 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1655 required :id, String |
#last_incident ⇒ Float?
Timestamp of last incident
1739 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1739 optional :last_incident, Float, nil?: true |
#last_seen ⇒ Float
Timestamp of last activity
1675 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1675 required :last_seen, Float |
#metadata ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Metadata
Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
1682 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1682 required :metadata, -> { ModerationAPI::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Metadata } |
#metrics ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Metrics
1687 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1687 required :metrics, -> { ModerationAPI::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Metrics } |
#name ⇒ String?
Author name or identifier
1745 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1745 optional :name, String, nil?: true |
#profile_picture ⇒ String?
URL of the author’s profile picture
1751 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1751 optional :profile_picture, String, nil?: true |
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::RiskEvaluation?
Risk assessment details, if available.
1693 1694 1695 1696 1697 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1693 required :risk_evaluation, -> { ModerationAPI::WebhookEvent::AuthorTrustLevelChanged::Data::Object::RiskEvaluation }, nil?: true |
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Status
Current author status
1703 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1703 required :status, enum: -> { ModerationAPI::WebhookEvent::AuthorTrustLevelChanged::Data::Object::Status } |
#trust_level ⇒ ModerationAPI::Models::WebhookEvent::AuthorTrustLevelChanged::Data::Object::TrustLevel
1708 1709 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1708 required :trust_level, -> { ModerationAPI::WebhookEvent::AuthorTrustLevelChanged::Data::Object::TrustLevel } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 1908
|