Class: GetStream::Generated::Models::SetFeedsRetentionPolicyRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::SetFeedsRetentionPolicyRequest
- Defined in:
- lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb
Instance Attribute Summary collapse
- #enabled ⇒ Boolean
- #feed_groups ⇒ Array<String>
-
#filter_conditions ⇒ Object
Limits deletion to activities matching every condition; expires_at supports only $exists: true.
- #max_age_hours ⇒ Integer
- #policy ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SetFeedsRetentionPolicyRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ SetFeedsRetentionPolicyRequest
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb', line 29 def initialize(attributes = {}) super(attributes) @max_age_hours = attributes.fetch(:max_age_hours) { attributes.fetch('max_age_hours', nil) } @policy = attributes.fetch(:policy) { attributes.fetch('policy', nil) } @enabled = attributes.fetch(:enabled) { attributes.fetch('enabled', nil) } @feed_groups = attributes.fetch(:feed_groups) { attributes.fetch('feed_groups', nil) } @filter_conditions = attributes.fetch(:filter_conditions) { attributes.fetch('filter_conditions', nil) } end |
Instance Attribute Details
#enabled ⇒ Boolean
20 21 22 |
# File 'lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb', line 20 def enabled @enabled end |
#feed_groups ⇒ Array<String>
23 24 25 |
# File 'lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb', line 23 def feed_groups @feed_groups end |
#filter_conditions ⇒ Object
Returns Limits deletion to activities matching every condition; expires_at supports only $exists: true. Not allowed on old-activities. Omitted or null keeps the stored filter; {} removes it.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb', line 26 def filter_conditions @filter_conditions end |
#max_age_hours ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb', line 14 def max_age_hours @max_age_hours end |
#policy ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb', line 17 def policy @policy end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/set_feeds_retention_policy_request.rb', line 39 def self.json_field_mappings { max_age_hours: 'max_age_hours', policy: 'policy', enabled: 'enabled', feed_groups: 'feed_groups', filter_conditions: 'filter_conditions' } end |