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_leet_check_enabled ⇒ Boolean
- #is_plural_check_enabled ⇒ Boolean
-
#name ⇒ String
Block list name.
- #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
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 41 def initialize(attributes = {}) super(attributes) @is_leet_check_enabled = attributes[:is_leet_check_enabled] || attributes['is_leet_check_enabled'] @is_plural_check_enabled = attributes[:is_plural_check_enabled] || attributes['is_plural_check_enabled'] @name = attributes[:name] || attributes['name'] @type = attributes[:type] || attributes['type'] @words = attributes[:words] || attributes['words'] @created_at = attributes[:created_at] || attributes['created_at'] || nil @id = attributes[:id] || attributes['id'] || nil @team = attributes[:team] || attributes['team'] || nil @updated_at = attributes[:updated_at] || attributes['updated_at'] || nil end |
Instance Attribute Details
#created_at ⇒ DateTime
Returns Date/time of creation.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 29 def created_at @created_at end |
#id ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 32 def id @id end |
#is_leet_check_enabled ⇒ Boolean
14 15 16 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 14 def is_leet_check_enabled @is_leet_check_enabled end |
#is_plural_check_enabled ⇒ Boolean
17 18 19 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 17 def is_plural_check_enabled @is_plural_check_enabled end |
#name ⇒ String
Returns Block list name.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 20 def name @name end |
#team ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 35 def team @team end |
#type ⇒ String
Returns Block list type.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 23 def type @type end |
#updated_at ⇒ DateTime
Returns Date/time of the last update.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 38 def updated_at @updated_at end |
#words ⇒ Array<String>
Returns List of words to block.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 26 def words @words end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 55 def self.json_field_mappings { is_leet_check_enabled: 'is_leet_check_enabled', is_plural_check_enabled: 'is_plural_check_enabled', name: 'name', type: 'type', words: 'words', created_at: 'created_at', id: 'id', team: 'team', updated_at: 'updated_at' } end |