Class: GetStream::Generated::Models::VelocityFilterConfigRule
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::VelocityFilterConfigRule
show all
- Defined in:
- lib/getstream_ruby/generated/models/velocity_filter_config_rule.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 with attributes
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 56
def initialize(attributes = {})
super(attributes)
@action = attributes[:action] || attributes['action']
@ban_duration = attributes[:ban_duration] || attributes['ban_duration'] || nil
@cascading_action = attributes[:cascading_action] || attributes['cascading_action'] || nil
@cascading_threshold = attributes[:cascading_threshold] || attributes['cascading_threshold'] || nil
@check_message_context = attributes[:check_message_context] || attributes['check_message_context'] || nil
@fast_spam_threshold = attributes[:fast_spam_threshold] || attributes['fast_spam_threshold'] || nil
@fast_spam_ttl = attributes[:fast_spam_ttl] || attributes['fast_spam_ttl'] || nil
@ip_ban = attributes[:ip_ban] || attributes['ip_ban'] || nil
@probation_period = attributes[:probation_period] || attributes['probation_period'] || nil
@shadow_ban = attributes[:shadow_ban] || attributes['shadow_ban'] || nil
@slow_spam_ban_duration = attributes[:slow_spam_ban_duration] || attributes['slow_spam_ban_duration'] || nil
@slow_spam_threshold = attributes[:slow_spam_threshold] || attributes['slow_spam_threshold'] || nil
@slow_spam_ttl = attributes[:slow_spam_ttl] || attributes['slow_spam_ttl'] || nil
@url_only = attributes[:url_only] || attributes['url_only'] || nil
end
|
Instance Attribute Details
#action ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 14
def action
@action
end
|
#ban_duration ⇒ Integer
17
18
19
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 17
def ban_duration
@ban_duration
end
|
#cascading_action ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 20
def cascading_action
@cascading_action
end
|
#cascading_threshold ⇒ Integer
23
24
25
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 23
def cascading_threshold
@cascading_threshold
end
|
#check_message_context ⇒ Boolean
26
27
28
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 26
def check_message_context
@check_message_context
end
|
#fast_spam_threshold ⇒ Integer
29
30
31
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 29
def fast_spam_threshold
@fast_spam_threshold
end
|
#fast_spam_ttl ⇒ Integer
32
33
34
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 32
def fast_spam_ttl
@fast_spam_ttl
end
|
#ip_ban ⇒ Boolean
35
36
37
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 35
def ip_ban
@ip_ban
end
|
#probation_period ⇒ Integer
38
39
40
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 38
def probation_period
@probation_period
end
|
#shadow_ban ⇒ Boolean
41
42
43
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 41
def shadow_ban
@shadow_ban
end
|
#slow_spam_ban_duration ⇒ Integer
44
45
46
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 44
def slow_spam_ban_duration
@slow_spam_ban_duration
end
|
#slow_spam_threshold ⇒ Integer
47
48
49
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 47
def slow_spam_threshold
@slow_spam_threshold
end
|
#slow_spam_ttl ⇒ Integer
50
51
52
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 50
def slow_spam_ttl
@slow_spam_ttl
end
|
#url_only ⇒ Boolean
53
54
55
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 53
def url_only
@url_only
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# File 'lib/getstream_ruby/generated/models/velocity_filter_config_rule.rb', line 75
def self.json_field_mappings
{
action: 'action',
ban_duration: 'ban_duration',
cascading_action: 'cascading_action',
cascading_threshold: 'cascading_threshold',
check_message_context: 'check_message_context',
fast_spam_threshold: 'fast_spam_threshold',
fast_spam_ttl: 'fast_spam_ttl',
ip_ban: 'ip_ban',
probation_period: 'probation_period',
shadow_ban: 'shadow_ban',
slow_spam_ban_duration: 'slow_spam_ban_duration',
slow_spam_threshold: 'slow_spam_threshold',
slow_spam_ttl: 'slow_spam_ttl',
url_only: 'url_only'
}
end
|