Class: GetStream::Generated::Models::Supporting

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/supporting.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ Supporting

Initialize with attributes



23
24
25
26
27
28
# File 'lib/getstream_ruby/generated/models/supporting.rb', line 23

def initialize(attributes = {})
  super(attributes)
  @delivery_incident_windows = attributes[:delivery_incident_windows] || attributes['delivery_incident_windows']
  @edge_outlier_zones = attributes[:edge_outlier_zones] || attributes['edge_outlier_zones']
  @source_drop_windows = attributes[:source_drop_windows] || attributes['source_drop_windows']
end

Instance Attribute Details

#delivery_incident_windowsArray<Incident>

Returns:



14
15
16
# File 'lib/getstream_ruby/generated/models/supporting.rb', line 14

def delivery_incident_windows
  @delivery_incident_windows
end

#edge_outlier_zonesArray<String>

Returns:

  • (Array<String>)


17
18
19
# File 'lib/getstream_ruby/generated/models/supporting.rb', line 17

def edge_outlier_zones
  @edge_outlier_zones
end

#source_drop_windowsArray<TimeWindow>

Returns:



20
21
22
# File 'lib/getstream_ruby/generated/models/supporting.rb', line 20

def source_drop_windows
  @source_drop_windows
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



31
32
33
34
35
36
37
# File 'lib/getstream_ruby/generated/models/supporting.rb', line 31

def self.json_field_mappings
  {
    delivery_incident_windows: 'delivery_incident_windows',
    edge_outlier_zones: 'edge_outlier_zones',
    source_drop_windows: 'source_drop_windows'
  }
end