Class: SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccount::Content::EventTextContent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccount::Content::EventTextContent
- Defined in:
- lib/safety_kit/models/beta/event_create_params.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#key ⇒ String?
Stable field key for this content part.
-
#text ⇒ String
User-authored text SafetyKit should compare or analyze.
-
#type ⇒ Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccount::Content::EventTextContent::Type
Text content part.
Instance Method Summary collapse
-
#initialize(text:, type:, key: nil) ⇒ Object
constructor
User-authored text content associated with an event.
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.
|
|
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 967
|
Instance Attribute Details
#key ⇒ String?
Stable field key for this content part.
965 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 965 optional :key, String |
#text ⇒ String
User-authored text SafetyKit should compare or analyze.
952 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 952 required :text, String |
#type ⇒ Symbol, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccount::Content::EventTextContent::Type
Text content part.
958 959 |
# File 'lib/safety_kit/models/beta/event_create_params.rb', line 958 required :type, enum: -> { SafetyKit::Beta::EventCreateParams::Body::UpdateAccount::Content::EventTextContent::Type } |