Class: SurgeAPI::Models::MessageDeliveredWebhookEvent::Data::Attachment
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- SurgeAPI::Models::MessageDeliveredWebhookEvent::Data::Attachment
- Defined in:
- lib/surge_api/models/message_delivered_webhook_event.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#id ⇒ String
The unique identifier for the attachment.
-
#type ⇒ Symbol, SurgeAPI::Models::MessageDeliveredWebhookEvent::Data::Attachment::Type
The type of attachment.
-
#url ⇒ String
The URL where the attachment can be downloaded.
Instance Method Summary collapse
- #initialize(id:, type:, url:) ⇒ Object constructor
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(id:, type:, url:) ⇒ Object
|
|
# File 'lib/surge_api/models/message_delivered_webhook_event.rb', line 146
|
Instance Attribute Details
#id ⇒ String
The unique identifier for the attachment
132 |
# File 'lib/surge_api/models/message_delivered_webhook_event.rb', line 132 required :id, String |
#type ⇒ Symbol, SurgeAPI::Models::MessageDeliveredWebhookEvent::Data::Attachment::Type
The type of attachment
138 |
# File 'lib/surge_api/models/message_delivered_webhook_event.rb', line 138 required :type, enum: -> { SurgeAPI::MessageDeliveredWebhookEvent::Data::Attachment::Type } |
#url ⇒ String
The URL where the attachment can be downloaded
144 |
# File 'lib/surge_api/models/message_delivered_webhook_event.rb', line 144 required :url, String |