Class: GetStream::Generated::Models::BlockListResponse
- Defined in:
- lib/getstream_ruby/generated/models/block_list_response.rb
Overview
Block list contains restricted words
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
Date/time of creation.
- #id ⇒ String
- #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.
- #owner_user_id ⇒ String
- #team ⇒ String
-
#type ⇒ String
Block list type.
-
#updated_at ⇒ DateTime
Date/time of the last update.
-
#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 = {}) ⇒ BlockListResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ BlockListResponse
Initialize with attributes
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 50 def initialize(attributes = {}) super(attributes) @is_confusable_folding_enabled = attributes.fetch(:is_confusable_folding_enabled) { attributes.fetch('is_confusable_folding_enabled', nil) } @is_leet_check_enabled = attributes.fetch(:is_leet_check_enabled) { attributes.fetch('is_leet_check_enabled', nil) } @is_plural_check_enabled = attributes.fetch(:is_plural_check_enabled) { attributes.fetch('is_plural_check_enabled', nil) } @is_substring_matching_enabled = attributes.fetch(:is_substring_matching_enabled) { attributes.fetch('is_substring_matching_enabled', nil) } @name = attributes.fetch(:name) { attributes.fetch('name', nil) } @type = attributes.fetch(:type) { attributes.fetch('type', nil) } @words = attributes.fetch(:words) { attributes.fetch('words', nil) } @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) } @id = attributes.fetch(:id) { attributes.fetch('id', nil) } @owner_user_id = attributes.fetch(:owner_user_id) { attributes.fetch('owner_user_id', nil) } @team = attributes.fetch(:team) { attributes.fetch('team', nil) } @updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) } end |
Instance Attribute Details
#created_at ⇒ DateTime
Returns Date/time of creation.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 35 def created_at @created_at end |
#id ⇒ String
38 39 40 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 38 def id @id end |
#is_confusable_folding_enabled ⇒ Boolean
14 15 16 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 14 def is_confusable_folding_enabled @is_confusable_folding_enabled end |
#is_leet_check_enabled ⇒ Boolean
17 18 19 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 17 def is_leet_check_enabled @is_leet_check_enabled end |
#is_plural_check_enabled ⇒ Boolean
20 21 22 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 20 def is_plural_check_enabled @is_plural_check_enabled end |
#is_substring_matching_enabled ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 23 def is_substring_matching_enabled @is_substring_matching_enabled end |
#name ⇒ String
Returns Block list name.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 26 def name @name end |
#owner_user_id ⇒ String
41 42 43 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 41 def owner_user_id @owner_user_id end |
#team ⇒ String
44 45 46 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 44 def team @team end |
#type ⇒ String
Returns Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word, word_allowlist.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 29 def type @type end |
#updated_at ⇒ DateTime
Returns Date/time of the last update.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 47 def updated_at @updated_at end |
#words ⇒ Array<String>
Returns List of words to block.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 32 def words @words end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 67 def self.json_field_mappings { 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', name: 'name', type: 'type', words: 'words', created_at: 'created_at', id: 'id', owner_user_id: 'owner_user_id', team: 'team', updated_at: 'updated_at' } end |