Class: GetStream::Generated::Models::QueryBannedUsersPayload

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

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

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/query_banned_users_payload.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @filter_conditions = attributes[:filter_conditions] || attributes['filter_conditions']
  @exclude_expired_bans = attributes[:exclude_expired_bans] || attributes['exclude_expired_bans'] || nil
  @limit = attributes[:limit] || attributes['limit'] || nil
  @offset = attributes[:offset] || attributes['offset'] || nil
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
  @sort = attributes[:sort] || attributes['sort'] || nil
  @user = attributes[:user] || attributes['user'] || nil
end

Instance Attribute Details

#exclude_expired_bansBoolean

Returns Whether to exclude expired bans or not.

Returns:

  • (Boolean)

    Whether to exclude expired bans or not



17
18
19
# File 'lib/getstream_ruby/generated/models/query_banned_users_payload.rb', line 17

def exclude_expired_bans
  @exclude_expired_bans
end

#filter_conditionsObject

Returns:

  • (Object)


14
15
16
# File 'lib/getstream_ruby/generated/models/query_banned_users_payload.rb', line 14

def filter_conditions
  @filter_conditions
end

#limitInteger

Returns Number of records to return.

Returns:

  • (Integer)

    Number of records to return



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

def limit
  @limit
end

#offsetInteger

Returns Number of records to offset.

Returns:

  • (Integer)

    Number of records to offset



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

def offset
  @offset
end

#sortArray<SortParamRequest>

Returns Array of sort parameters.

Returns:



29
30
31
# File 'lib/getstream_ruby/generated/models/query_banned_users_payload.rb', line 29

def sort
  @sort
end

#userUserRequest

Returns:



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

def user
  @user
end

#user_idString

Returns:

  • (String)


26
27
28
# File 'lib/getstream_ruby/generated/models/query_banned_users_payload.rb', line 26

def user_id
  @user_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/getstream_ruby/generated/models/query_banned_users_payload.rb', line 47

def self.json_field_mappings
  {
    filter_conditions: 'filter_conditions',
    exclude_expired_bans: 'exclude_expired_bans',
    limit: 'limit',
    offset: 'offset',
    user_id: 'user_id',
    sort: 'sort',
    user: 'user'
  }
end