Class: SafetyKit::Models::AsyncCreateAsyncParams::Body::ContentUploadedEventRequest::Content::EventTextContent

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/safety_kit/models/async_create_async_params.rb

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

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

User-authored text content associated with an event.

Parameters:



# File 'lib/safety_kit/models/async_create_async_params.rb', line 579

Instance Attribute Details

#keyString?

Stable field key for this content part.

Returns:

  • (String, nil)


577
# File 'lib/safety_kit/models/async_create_async_params.rb', line 577

optional :key, String

#textString

User-authored text SafetyKit should compare or analyze.

Returns:

  • (String)


564
# File 'lib/safety_kit/models/async_create_async_params.rb', line 564

required :text, String

#typeSymbol, SafetyKit::Models::AsyncCreateAsyncParams::Body::ContentUploadedEventRequest::Content::EventTextContent::Type

Text content part.



570
571
# File 'lib/safety_kit/models/async_create_async_params.rb', line 570

required :type,
enum: -> { SafetyKit::AsyncCreateAsyncParams::Body::ContentUploadedEventRequest::Content::EventTextContent::Type }