Class: ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author
- 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::QueueItemAllowed::Data::Object::Author::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::QueueItemAllowed::Data::Object::Author::Metadata
Additional metadata provided by your system.
- #metrics ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metrics
-
#name ⇒ String?
Author name or identifier.
-
#profile_picture ⇒ String?
URL of the author’s profile picture.
-
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::RiskEvaluation?
Risk assessment details, if available.
-
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Status
Current author status.
- #trust_level ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::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 5745
|
Instance Attribute Details
#block ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Block?
Block or suspension details, if applicable. Null if the author is enabled.
5653 5654 5655 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5653 required :block, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Block }, nil?: true |
#company ⇒ String?
The author’s company or organization
5707 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5707 optional :company, String, nil?: true |
#email ⇒ String?
Author email address
5713 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5713 optional :email, String, nil?: true |
#external_id ⇒ String?
The author’s ID from your system
5719 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5719 optional :external_id, String, nil?: true |
#external_link ⇒ String?
URL of the author’s external profile
5725 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5725 optional :external_link, String, nil?: true |
#first_seen ⇒ Float
Timestamp when author first appeared
5661 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5661 required :first_seen, Float |
#id ⇒ String
Author ID in Moderation API
5647 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5647 required :id, String |
#last_incident ⇒ Float?
Timestamp of last incident
5731 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5731 optional :last_incident, Float, nil?: true |
#last_seen ⇒ Float
Timestamp of last activity
5667 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5667 required :last_seen, Float |
#metadata ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metadata
Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
5674 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5674 required :metadata, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metadata } |
#metrics ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metrics
5679 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5679 required :metrics, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metrics } |
#name ⇒ String?
Author name or identifier
5737 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5737 optional :name, String, nil?: true |
#profile_picture ⇒ String?
URL of the author’s profile picture
5743 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5743 optional :profile_picture, String, nil?: true |
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::RiskEvaluation?
Risk assessment details, if available.
5685 5686 5687 5688 5689 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5685 required :risk_evaluation, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::RiskEvaluation }, nil?: true |
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Status
Current author status
5695 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5695 required :status, enum: -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Status } |
#trust_level ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::TrustLevel
5700 5701 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5700 required :trust_level, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::TrustLevel } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 5902
|