Class: SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccount::Content::EventImageContent

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

Defined Under Namespace

Modules: Type Classes: Source

Instance Attribute Summary collapse

Class Method 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(source:, type:, key: nil) ⇒ Object

User-uploaded image content associated with an event.

Parameters:



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

Instance Attribute Details

#keyString?

Stable field key for this content part.

Returns:

  • (String, nil)


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

optional :key, String

#sourceSafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccount::Content::EventImageContent::Source

Image source information.



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

required :source,
-> { SafetyKit::Beta::EventCreateParams::Body::UpdateAccount::Content::EventImageContent::Source }

#typeSymbol, SafetyKit::Models::Beta::EventCreateParams::Body::UpdateAccount::Content::EventImageContent::Type

Image content part.



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

required :type,
enum: -> { SafetyKit::Beta::EventCreateParams::Body::UpdateAccount::Content::EventImageContent::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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