Class: GetStream::Generated::Models::VelocityFilterConfig

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/velocity_filter_config.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 = {}) ⇒ VelocityFilterConfig

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/velocity_filter_config.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @advanced_filters = attributes.fetch(:advanced_filters) { attributes.fetch('advanced_filters', nil) }
  @async = attributes.fetch(:async) { attributes.fetch('async', nil) }
  @cascading_actions = attributes.fetch(:cascading_actions) { attributes.fetch('cascading_actions', nil) }
  @cids_per_user = attributes.fetch(:cids_per_user) { attributes.fetch('cids_per_user', nil) }
  @enabled = attributes.fetch(:enabled) { attributes.fetch('enabled', nil) }
  @first_message_only = attributes.fetch(:first_message_only) { attributes.fetch('first_message_only', nil) }
  @rules = attributes.fetch(:rules) { attributes.fetch('rules', nil) }
end

Instance Attribute Details

#advanced_filters ⇒ Boolean

Returns:

  • (Boolean)


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

def advanced_filters
  @advanced_filters
end

#async ⇒ Boolean

Returns:

  • (Boolean)


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

def async
  @async
end

#cascading_actions ⇒ Boolean

Returns:

  • (Boolean)


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

def cascading_actions
  @cascading_actions
end

#cids_per_user ⇒ Integer

Returns:

  • (Integer)


23
24
25
# File 'lib/getstream_ruby/generated/models/velocity_filter_config.rb', line 23

def cids_per_user
  @cids_per_user
end

#enabled ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/getstream_ruby/generated/models/velocity_filter_config.rb', line 26

def enabled
  @enabled
end

#first_message_only ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/getstream_ruby/generated/models/velocity_filter_config.rb', line 29

def first_message_only
  @first_message_only
end

#rules ⇒ Array<VelocityFilterConfigRule>

Returns:



32
33
34
# File 'lib/getstream_ruby/generated/models/velocity_filter_config.rb', line 32

def rules
  @rules
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/velocity_filter_config.rb', line 47

def self.json_field_mappings
  {
    advanced_filters: 'advanced_filters',
    async: 'async',
    cascading_actions: 'cascading_actions',
    cids_per_user: 'cids_per_user',
    enabled: 'enabled',
    first_message_only: 'first_message_only',
    rules: 'rules'
  }
end