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 5465
|
Instance Attribute Details
#block ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Block?
Block or suspension details, if applicable. Null if the author is enabled.
5373 5374 5375 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5373 required :block, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Block }, nil?: true |
#company ⇒ String?
The author’s company or organization
5427 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5427 optional :company, String, nil?: true |
#email ⇒ String?
Author email address
5433 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5433 optional :email, String, nil?: true |
#external_id ⇒ String?
The author’s ID from your system
5439 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5439 optional :external_id, String, nil?: true |
#external_link ⇒ String?
URL of the author’s external profile
5445 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5445 optional :external_link, String, nil?: true |
#first_seen ⇒ Float
Timestamp when author first appeared
5381 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5381 required :first_seen, Float |
#id ⇒ String
Author ID in Moderation API
5367 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5367 required :id, String |
#last_incident ⇒ Float?
Timestamp of last incident
5451 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5451 optional :last_incident, Float, nil?: true |
#last_seen ⇒ Float
Timestamp of last activity
5387 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5387 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.
5394 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5394 required :metadata, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metadata } |
#metrics ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metrics
5399 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5399 required :metrics, -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Metrics } |
#name ⇒ String?
Author name or identifier
5457 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5457 optional :name, String, nil?: true |
#profile_picture ⇒ String?
URL of the author’s profile picture
5463 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5463 optional :profile_picture, String, nil?: true |
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::RiskEvaluation?
Risk assessment details, if available.
5405 5406 5407 5408 5409 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5405 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
5415 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5415 required :status, enum: -> { ModerationAPI::WebhookEvent::QueueItemAllowed::Data::Object::Author::Status } |
#trust_level ⇒ ModerationAPI::Models::WebhookEvent::QueueItemAllowed::Data::Object::Author::TrustLevel
5420 5421 |
# File 'lib/moderation_api/models/webhook_event.rb', line 5420 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 5622
|