Class: SafetyKit::Models::ContentCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::ContentCreateResponse
- Defined in:
- lib/safety_kit/models/content_create_response.rb,
sig/safety_kit/models/content_create_response.rbs
Overview
Defined Under Namespace
Modules: Label
Instance Attribute Summary collapse
-
#content_id ⇒ String
SafetyKit identifier for the classified content.
-
#labels ⇒ Array<SafetyKit::Models::ContentCreateResponse::Label::UnionMember0, SafetyKit::Models::ContentCreateResponse::Label::UnionMember1>
Per-label results for the submitted content.
-
#user_id ⇒ String
The user_id from the request.
-
#version ⇒ String
The API version that served this request.
Instance Method Summary collapse
-
#initialize(content_id:, labels:, user_id:, version:) ⇒ Object
constructor
Synchronous classification result for the submitted content.
- #to_hash ⇒ {
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(content_id:, labels:, user_id:, version:) ⇒ Object
Synchronous classification result for the submitted content.
|
|
# File 'lib/safety_kit/models/content_create_response.rb', line 32
|
Instance Attribute Details
#content_id ⇒ String
SafetyKit identifier for the classified content.
11 |
# File 'lib/safety_kit/models/content_create_response.rb', line 11 required :content_id, String |
#labels ⇒ Array<SafetyKit::Models::ContentCreateResponse::Label::UnionMember0, SafetyKit::Models::ContentCreateResponse::Label::UnionMember1>
Per-label results for the submitted content.
17 18 |
# File 'lib/safety_kit/models/content_create_response.rb', line 17 required :labels, -> { SafetyKit::Internal::Type::ArrayOf[union: SafetyKit::Models::ContentCreateResponse::Label] } |
#user_id ⇒ String
The user_id from the request.
24 |
# File 'lib/safety_kit/models/content_create_response.rb', line 24 required :user_id, String |
#version ⇒ String
The API version that served this request.
30 |
# File 'lib/safety_kit/models/content_create_response.rb', line 30 required :version, String |
Instance Method Details
#to_hash ⇒ {
27 |
# File 'sig/safety_kit/models/content_create_response.rbs', line 27
def to_hash: -> {
|