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.fetch(:delivery_incident_windows) { attributes.fetch('delivery_incident_windows', nil) }
  @edge_outlier_zones = attributes.fetch(:edge_outlier_zones) { attributes.fetch('edge_outlier_zones', nil) }
  @source_drop_windows = attributes.fetch(:source_drop_windows) { attributes.fetch('source_drop_windows', nil) }
end

Instance Attribute Details

#delivery_incident_windows ⇒ Array<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_zones ⇒ Array<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_windows ⇒ Array<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_mappings ⇒ Object

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