Class: StreamChat::Webhook::UnknownEvent
- Inherits:
-
Object
- Object
- StreamChat::Webhook::UnknownEvent
- Defined in:
- lib/getstream_ruby/generated/webhook.rb
Overview
Returned by parse_event when the type discriminator is well-formed but unknown to this SDK version.
Stable forward-compat surface: backend may add new event types before this SDK is regenerated. Switch on the returned object’s class and include UnknownEvent as a fallback case.
Instance Attribute Summary collapse
-
#created_at ⇒ Time?
readonly
Parsed timestamp from the envelope, or nil if missing/unparseable.
-
#raw ⇒ Hash
readonly
The full parsed JSON hash for inspection.
-
#type ⇒ String
readonly
The unrecognized discriminator value.
Instance Method Summary collapse
-
#initialize(type:, created_at: nil, raw: {}) ⇒ UnknownEvent
constructor
A new instance of UnknownEvent.
Constructor Details
#initialize(type:, created_at: nil, raw: {}) ⇒ UnknownEvent
Returns a new instance of UnknownEvent.
204 205 206 207 208 |
# File 'lib/getstream_ruby/generated/webhook.rb', line 204 def initialize(type:, created_at: nil, raw: {}) @type = type @created_at = created_at @raw = raw end |
Instance Attribute Details
#created_at ⇒ Time? (readonly)
Returns parsed timestamp from the envelope, or nil if missing/unparseable.
201 202 203 204 205 206 207 208 209 |
# File 'lib/getstream_ruby/generated/webhook.rb', line 201 class UnknownEvent attr_reader :type, :created_at, :raw def initialize(type:, created_at: nil, raw: {}) @type = type @created_at = created_at @raw = raw end end |
#raw ⇒ Hash (readonly)
Returns the full parsed JSON hash for inspection.
201 202 203 204 205 206 207 208 209 |
# File 'lib/getstream_ruby/generated/webhook.rb', line 201 class UnknownEvent attr_reader :type, :created_at, :raw def initialize(type:, created_at: nil, raw: {}) @type = type @created_at = created_at @raw = raw end end |
#type ⇒ String (readonly)
Returns the unrecognized discriminator value.
201 202 203 204 205 206 207 208 209 |
# File 'lib/getstream_ruby/generated/webhook.rb', line 201 class UnknownEvent attr_reader :type, :created_at, :raw def initialize(type:, created_at: nil, raw: {}) @type = type @created_at = created_at @raw = raw end end |