Class: GetStream::Generated::Models::BlockListResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/block_list_response.rb

Overview

Block list contains restricted words

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 = {}) ⇒ 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_atDateTime

Returns Date/time of creation.

Returns:

  • (DateTime)

    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

#idString

Returns:

  • (String)


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

def id
  @id
end

#is_leet_check_enabledBoolean

Returns:

  • (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_enabledBoolean

Returns:

  • (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

#nameString

Returns Block list name.

Returns:

  • (String)

    Block list name



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

def name
  @name
end

#teamString

Returns:

  • (String)


35
36
37
# File 'lib/getstream_ruby/generated/models/block_list_response.rb', line 35

def team
  @team
end

#typeString

Returns Block list type.

Returns:

  • (String)

    Block list type.



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

def type
  @type
end

#updated_atDateTime

Returns Date/time of the last update.

Returns:

  • (DateTime)

    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

#wordsArray<String>

Returns List of words to block.

Returns:

  • (Array<String>)

    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_mappingsObject

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