Class: SafetyKit::Models::ContentCreateParams::Content::UnionMember0
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::ContentCreateParams::Content::UnionMember0
- Defined in:
- lib/safety_kit/models/content_create_params.rb,
sig/safety_kit/models/content_create_params.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#key ⇒ String?
Your name for where this part came from.
-
#text ⇒ String
User-authored text to classify.
- #type ⇒ Symbol, SafetyKit::Models::ContentCreateParams::Content::UnionMember0::Type
Instance Method Summary collapse
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(text:, type:, key: nil) ⇒ Object
|
|
# File 'lib/safety_kit/models/content_create_params.rb', line 85
|
Instance Attribute Details
#key ⇒ String?
Your name for where this part came from.
83 |
# File 'lib/safety_kit/models/content_create_params.rb', line 83 optional :key, String |
#text ⇒ String
User-authored text to classify. At most 16,000 characters per part.
72 |
# File 'lib/safety_kit/models/content_create_params.rb', line 72 required :text, String |
#type ⇒ Symbol, SafetyKit::Models::ContentCreateParams::Content::UnionMember0::Type
77 |
# File 'lib/safety_kit/models/content_create_params.rb', line 77 required :type, enum: -> { SafetyKit::ContentCreateParams::Content::UnionMember0::Type } |
Instance Method Details
#to_hash ⇒ {
82 |
# File 'sig/safety_kit/models/content_create_params.rbs', line 82
def to_hash: -> {
|