Class: ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::WebhookEvent::AuthorUnblocked::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::AuthorUnblocked::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::AuthorUnblocked::Data::Object::Author::Metadata
Additional metadata provided by your system.
- #metrics ⇒ ModerationAPI::Models::WebhookEvent::AuthorUnblocked::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::AuthorUnblocked::Data::Object::Author::RiskEvaluation?
Risk assessment details, if available.
-
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author::Status
Current author status.
- #trust_level ⇒ ModerationAPI::Models::WebhookEvent::AuthorUnblocked::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 655
|
Instance Attribute Details
#block ⇒ ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author::Block?
Block or suspension details, if applicable. Null if the author is enabled.
563 564 565 |
# File 'lib/moderation_api/models/webhook_event.rb', line 563 required :block, -> { ModerationAPI::WebhookEvent::AuthorUnblocked::Data::Object::Author::Block }, nil?: true |
#company ⇒ String?
The author’s company or organization
617 |
# File 'lib/moderation_api/models/webhook_event.rb', line 617 optional :company, String, nil?: true |
#email ⇒ String?
Author email address
623 |
# File 'lib/moderation_api/models/webhook_event.rb', line 623 optional :email, String, nil?: true |
#external_id ⇒ String?
The author’s ID from your system
629 |
# File 'lib/moderation_api/models/webhook_event.rb', line 629 optional :external_id, String, nil?: true |
#external_link ⇒ String?
URL of the author’s external profile
635 |
# File 'lib/moderation_api/models/webhook_event.rb', line 635 optional :external_link, String, nil?: true |
#first_seen ⇒ Float
Timestamp when author first appeared
571 |
# File 'lib/moderation_api/models/webhook_event.rb', line 571 required :first_seen, Float |
#id ⇒ String
Author ID in Moderation API
557 |
# File 'lib/moderation_api/models/webhook_event.rb', line 557 required :id, String |
#last_incident ⇒ Float?
Timestamp of last incident
641 |
# File 'lib/moderation_api/models/webhook_event.rb', line 641 optional :last_incident, Float, nil?: true |
#last_seen ⇒ Float
Timestamp of last activity
577 |
# File 'lib/moderation_api/models/webhook_event.rb', line 577 required :last_seen, Float |
#metadata ⇒ ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author::Metadata
Additional metadata provided by your system. We recommend including any relevant information that may assist in the moderation process.
584 |
# File 'lib/moderation_api/models/webhook_event.rb', line 584 required :metadata, -> { ModerationAPI::WebhookEvent::AuthorUnblocked::Data::Object::Author::Metadata } |
#metrics ⇒ ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author::Metrics
589 |
# File 'lib/moderation_api/models/webhook_event.rb', line 589 required :metrics, -> { ModerationAPI::WebhookEvent::AuthorUnblocked::Data::Object::Author::Metrics } |
#name ⇒ String?
Author name or identifier
647 |
# File 'lib/moderation_api/models/webhook_event.rb', line 647 optional :name, String, nil?: true |
#profile_picture ⇒ String?
URL of the author’s profile picture
653 |
# File 'lib/moderation_api/models/webhook_event.rb', line 653 optional :profile_picture, String, nil?: true |
#risk_evaluation ⇒ ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author::RiskEvaluation?
Risk assessment details, if available.
595 596 597 598 599 |
# File 'lib/moderation_api/models/webhook_event.rb', line 595 required :risk_evaluation, -> { ModerationAPI::WebhookEvent::AuthorUnblocked::Data::Object::Author::RiskEvaluation }, nil?: true |
#status ⇒ Symbol, ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author::Status
Current author status
605 |
# File 'lib/moderation_api/models/webhook_event.rb', line 605 required :status, enum: -> { ModerationAPI::WebhookEvent::AuthorUnblocked::Data::Object::Author::Status } |
#trust_level ⇒ ModerationAPI::Models::WebhookEvent::AuthorUnblocked::Data::Object::Author::TrustLevel
610 611 |
# File 'lib/moderation_api/models/webhook_event.rb', line 610 required :trust_level, -> { ModerationAPI::WebhookEvent::AuthorUnblocked::Data::Object::Author::TrustLevel } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/moderation_api/models/webhook_event.rb', line 812
|