Class: SafetyKit::Models::Beta::EventCreateResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SafetyKit::Models::Beta::EventCreateResponse
- Defined in:
- lib/safety_kit/models/beta/event_create_response.rb
Overview
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#event_id ⇒ String
SafetyKit identifier for the event.
-
#status ⇒ Symbol, SafetyKit::Models::Beta::EventCreateResponse::Status
Event was accepted.
Instance Method Summary collapse
-
#initialize(event_id:, status:) ⇒ Object
constructor
Response returned after SafetyKit accepts 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(event_id:, status:) ⇒ Object
Response returned after SafetyKit accepts an event.
|
|
# File 'lib/safety_kit/models/beta/event_create_response.rb', line 20
|
Instance Attribute Details
#event_id ⇒ String
SafetyKit identifier for the event.
12 |
# File 'lib/safety_kit/models/beta/event_create_response.rb', line 12 required :event_id, String |
#status ⇒ Symbol, SafetyKit::Models::Beta::EventCreateResponse::Status
Event was accepted.
18 |
# File 'lib/safety_kit/models/beta/event_create_response.rb', line 18 required :status, enum: -> { SafetyKit::Models::Beta::EventCreateResponse::Status } |