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
Classes: Policy, ReferenceSetMatch
Instance Attribute Summary collapse
-
#content_id ⇒ String
SafetyKit identifier for the classified content.
-
#policies ⇒ Array<SafetyKit::Models::ContentCreateResponse::Policy>
Per-policy results for the submitted content.
-
#reference_set_matches ⇒ Array<SafetyKit::Models::ContentCreateResponse::ReferenceSetMatch>
Reference set matches found for the submitted content.
-
#user_id ⇒ String
The user_id from the request.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #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 ⇒ Object
20 |
# File 'sig/safety_kit/models/content_create_response.rbs', line 20
def initialize: (
|
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 |
#policies ⇒ Array<SafetyKit::Models::ContentCreateResponse::Policy>
Per-policy results for the submitted content.
17 18 |
# File 'lib/safety_kit/models/content_create_response.rb', line 17 required :policies, -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Models::ContentCreateResponse::Policy] } |
#reference_set_matches ⇒ Array<SafetyKit::Models::ContentCreateResponse::ReferenceSetMatch>
Reference set matches found for the submitted content.
24 25 |
# File 'lib/safety_kit/models/content_create_response.rb', line 24 required :reference_set_matches, -> { SafetyKit::Internal::Type::ArrayOf[SafetyKit::Models::ContentCreateResponse::ReferenceSetMatch] } |
#user_id ⇒ String
The user_id from the request.
31 |
# File 'lib/safety_kit/models/content_create_response.rb', line 31 required :user_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/safety_kit/models/content_create_response.rb', line 112
|
Instance Method Details
#to_hash ⇒ {
27 |
# File 'sig/safety_kit/models/content_create_response.rbs', line 27
def to_hash: -> {
|