Class: SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploaded::Content::EventTextContent

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/safety_kit/models/beta/event_create_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/beta/event_create_params.rb', line 428

Instance Attribute Details

#keyString?

Stable field key for this content part.

Returns:

  • (String, nil)


426
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 426

optional :key, String

#textString

User-authored text SafetyKit should compare or analyze.

Returns:

  • (String)


413
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 413

required :text, String

#typeSymbol, SafetyKit::Models::Beta::EventCreateParams::Body::ContentUploaded::Content::EventTextContent::Type

Text content part.



419
420
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 419

required :type,
enum: -> { SafetyKit::Beta::EventCreateParams::Body::ContentUploaded::Content::EventTextContent::Type }