Class: GetStream::Generated::Models::CreateBlockListRequest
- Defined in:
- lib/getstream_ruby/generated/models/create_block_list_request.rb
Overview
Block list contains restricted words
Instance Attribute Summary collapse
- #is_confusable_folding_enabled ⇒ Boolean
- #is_leet_check_enabled ⇒ Boolean
- #is_plural_check_enabled ⇒ Boolean
- #is_substring_matching_enabled ⇒ Boolean
-
#name ⇒ String
Block list name.
- #team ⇒ String
-
#type ⇒ String
Block list type.
-
#words ⇒ Array<String>
List of words to block.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CreateBlockListRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ CreateBlockListRequest
Initialize with attributes
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 38 def initialize(attributes = {}) super(attributes) @name = attributes[:name] || attributes['name'] @words = attributes[:words] || attributes['words'] @is_confusable_folding_enabled = attributes[:is_confusable_folding_enabled] || attributes['is_confusable_folding_enabled'] || nil @is_leet_check_enabled = attributes[:is_leet_check_enabled] || attributes['is_leet_check_enabled'] || nil @is_plural_check_enabled = attributes[:is_plural_check_enabled] || attributes['is_plural_check_enabled'] || nil @is_substring_matching_enabled = attributes[:is_substring_matching_enabled] || attributes['is_substring_matching_enabled'] || nil @team = attributes[:team] || attributes['team'] || nil @type = attributes[:type] || attributes['type'] || nil end |
Instance Attribute Details
#is_confusable_folding_enabled ⇒ Boolean
20 21 22 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 20 def is_confusable_folding_enabled @is_confusable_folding_enabled end |
#is_leet_check_enabled ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 23 def is_leet_check_enabled @is_leet_check_enabled end |
#is_plural_check_enabled ⇒ Boolean
26 27 28 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 26 def is_plural_check_enabled @is_plural_check_enabled end |
#is_substring_matching_enabled ⇒ Boolean
29 30 31 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 29 def is_substring_matching_enabled @is_substring_matching_enabled end |
#name ⇒ String
Returns Block list name.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 14 def name @name end |
#team ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 32 def team @team end |
#type ⇒ String
Returns Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 35 def type @type end |
#words ⇒ Array<String>
Returns List of words to block.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 17 def words @words end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 51 def self.json_field_mappings { name: 'name', words: 'words', is_confusable_folding_enabled: 'is_confusable_folding_enabled', is_leet_check_enabled: 'is_leet_check_enabled', is_plural_check_enabled: 'is_plural_check_enabled', is_substring_matching_enabled: 'is_substring_matching_enabled', team: 'team', type: 'type' } end |