Class: ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::AuthorUpdated::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::AuthorUpdated::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::AuthorUpdated::Data::Object::Metadata
Additional metadata provided by your system.
- #metrics ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::Metrics
-
#name ⇒ String?
Author name or identifier.
-
#profile_picture ⇒ String?
URL of the author’s profile picture.
-
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::RiskEvaluation?
Risk assessment details, if available.
-
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::Status
Current author status.
- #trust_level ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::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 1417
|
Instance Attribute Details
#block ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::Block?
Block or suspension details, if applicable. Null if the author is enabled.
1326 1327 1328 1329 1330 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1326 required :block, -> { ModerationAPI::WebhookEvent::AuthorUpdated::Data::Object::Block }, nil?: true |
#company ⇒ String?
The author’s company or organization
1379 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1379 optional :company, String, nil?: true |
#email ⇒ String?
Author email address
1385 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1385 optional :email, String, nil?: true |
#external_id ⇒ String?
The author’s ID from your system
1391 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1391 optional :external_id, String, nil?: true |
#external_link ⇒ String?
URL of the author’s external profile
1397 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1397 optional :external_link, String, nil?: true |
#first_seen ⇒ Float
Timestamp when author first appeared
1336 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1336 required :first_seen, Float |
#id ⇒ String
Author ID in Moderation API
1320 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1320 required :id, String |
#last_incident ⇒ Float?
Timestamp of last incident
1403 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1403 optional :last_incident, Float, nil?: true |
#last_seen ⇒ Float
Timestamp of last activity
1342 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1342 required :last_seen, Float |
#metadata ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::Metadata
Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
1349 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1349 required :metadata, -> { ModerationAPI::WebhookEvent::AuthorUpdated::Data::Object::Metadata } |
#metrics ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::Metrics
1354 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1354 required :metrics, -> { ModerationAPI::WebhookEvent::AuthorUpdated::Data::Object::Metrics } |
#name ⇒ String?
Author name or identifier
1409 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1409 optional :name, String, nil?: true |
#profile_picture ⇒ String?
URL of the author’s profile picture
1415 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1415 optional :profile_picture, String, nil?: true |
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::RiskEvaluation?
Risk assessment details, if available.
1360 1361 1362 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1360 required :risk_evaluation, -> { ModerationAPI::WebhookEvent::AuthorUpdated::Data::Object::RiskEvaluation }, nil?: true |
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::Status
Current author status
1368 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1368 required :status, enum: -> { ModerationAPI::WebhookEvent::AuthorUpdated::Data::Object::Status } |
#trust_level ⇒ ModerationAPI::Models::WebhookEvent::AuthorUpdated::Data::Object::TrustLevel
1373 |
# File 'lib/moderation_api/models/webhook_event.rb', line 1373 required :trust_level, -> { ModerationAPI::WebhookEvent::AuthorUpdated::Data::Object::TrustLevel } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 1572
|