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_leet_check_enabled ⇒ Boolean
- #is_plural_check_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
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 32 def initialize(attributes = {}) super(attributes) @name = attributes[:name] || attributes['name'] @words = attributes[:words] || attributes['words'] @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 @team = attributes[:team] || attributes['team'] || nil @type = attributes[:type] || attributes['type'] || nil end |
Instance Attribute Details
#is_leet_check_enabled ⇒ Boolean
20 21 22 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 20 def is_leet_check_enabled @is_leet_check_enabled end |
#is_plural_check_enabled ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 23 def is_plural_check_enabled @is_plural_check_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
26 27 28 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 26 def team @team end |
#type ⇒ String
Returns Block list type.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 29 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
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/create_block_list_request.rb', line 43 def self.json_field_mappings { name: 'name', words: 'words', is_leet_check_enabled: 'is_leet_check_enabled', is_plural_check_enabled: 'is_plural_check_enabled', team: 'team', type: 'type' } end |