Class: GetStream::Generated::Models::RingDeliveryResponse
- Defined in:
- lib/getstream_ruby/generated/models/ring_delivery_response.rb
Overview
One dispatch of a ring to one device over one channel.
Instance Attribute Summary collapse
-
#acked_at ⇒ DateTime
When the device acknowledged the ring; not populated yet.
-
#channel ⇒ String
The transport the ring was dispatched over: ws, apns_voip, apns or fcm.
-
#device_id ⇒ String
The device the ring was dispatched to, empty for websocket deliveries which fan out to every connection.
-
#displayed_at ⇒ DateTime
When the device displayed the ring; not populated yet.
-
#fetched_at ⇒ DateTime
When the device fetched the call; not populated yet.
-
#provider_accepted_at ⇒ DateTime
When the push provider accepted the dispatch; not populated yet.
-
#sent_at ⇒ DateTime
When the ring was dispatched.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ RingDeliveryResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ RingDeliveryResponse
Initialize with attributes
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 35 def initialize(attributes = {}) super(attributes) @channel = attributes.fetch(:channel) { attributes.fetch('channel', nil) } @sent_at = attributes.fetch(:sent_at) { attributes.fetch('sent_at', nil) } @acked_at = attributes.fetch(:acked_at) { attributes.fetch('acked_at', nil) } @device_id = attributes.fetch(:device_id) { attributes.fetch('device_id', nil) } @displayed_at = attributes.fetch(:displayed_at) { attributes.fetch('displayed_at', nil) } @fetched_at = attributes.fetch(:fetched_at) { attributes.fetch('fetched_at', nil) } @provider_accepted_at = attributes.fetch(:provider_accepted_at) { attributes.fetch('provider_accepted_at', nil) } end |
Instance Attribute Details
#acked_at ⇒ DateTime
Returns When the device acknowledged the ring; not populated yet.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 20 def acked_at @acked_at end |
#channel ⇒ String
Returns The transport the ring was dispatched over: ws, apns_voip, apns or fcm.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 14 def channel @channel end |
#device_id ⇒ String
Returns The device the ring was dispatched to, empty for websocket deliveries which fan out to every connection.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 23 def device_id @device_id end |
#displayed_at ⇒ DateTime
Returns When the device displayed the ring; not populated yet.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 26 def displayed_at @displayed_at end |
#fetched_at ⇒ DateTime
Returns When the device fetched the call; not populated yet.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 29 def fetched_at @fetched_at end |
#provider_accepted_at ⇒ DateTime
Returns When the push provider accepted the dispatch; not populated yet.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 32 def provider_accepted_at @provider_accepted_at end |
#sent_at ⇒ DateTime
Returns When the ring was dispatched.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 17 def sent_at @sent_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/getstream_ruby/generated/models/ring_delivery_response.rb', line 47 def self.json_field_mappings { channel: 'channel', sent_at: 'sent_at', acked_at: 'acked_at', device_id: 'device_id', displayed_at: 'displayed_at', fetched_at: 'fetched_at', provider_accepted_at: 'provider_accepted_at' } end |