Class: GetStream::Generated::Models::QueryCommentsRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/query_comments_request.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 = {}) ⇒ QueryCommentsRequest

Initialize with attributes



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/query_comments_request.rb', line 41

def initialize(attributes = {})
  super(attributes)
  @filter = attributes.fetch(:filter) { attributes.fetch('filter', nil) }
  @id_around = attributes.fetch(:id_around) { attributes.fetch('id_around', nil) }
  @include_soft_deleted_comments = attributes.fetch(:include_soft_deleted_comments) { attributes.fetch('include_soft_deleted_comments', nil) }
  @limit = attributes.fetch(:limit) { attributes.fetch('limit', nil) }
  @next = attributes.fetch(:next) { attributes.fetch('next', nil) }
  @prev = attributes.fetch(:prev) { attributes.fetch('prev', nil) }
  @sort = attributes.fetch(:sort) { attributes.fetch('sort', nil) }
  @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) }
  @user = attributes.fetch(:user) { attributes.fetch('user', nil) }
end

Instance Attribute Details

#filter ⇒ Object

Returns Filter to apply to the query.

Returns:

  • (Object) —

    Filter to apply to the query



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

def filter
  @filter
end

#id_around ⇒ String

Returns the comment with the specified ID along with surrounding comments for context

Returns:

  • (String) —

    Returns the comment with the specified ID along with surrounding comments for context



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

def id_around
  @id_around
end

#include_soft_deleted_comments ⇒ Boolean

Returns When true, include soft-deleted comments in the result. Server-side only, and requires an object_id filter. Covers comments removed via deleteComment and via soft user-data deletion. Moderation-actioned comments (removed, hidden, shadow_blocked) remain excluded, as are comments whose parent activity is itself deleted.

Returns:

  • (Boolean) —

    When true, include soft-deleted comments in the result. Server-side only, and requires an object_id filter. Covers comments removed via deleteComment and via soft user-data deletion. Moderation-actioned comments (removed, hidden, shadow_blocked) remain excluded, as are comments whose parent activity is itself deleted.



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

def include_soft_deleted_comments
  @include_soft_deleted_comments
end

#limit ⇒ Integer

Returns Maximum number of comments to return.

Returns:

  • (Integer) —

    Maximum number of comments to return



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

def limit
  @limit
end

#next ⇒ String

Returns:

  • (String)


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

def next
  @next
end

#prev ⇒ String

Returns:

  • (String)


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

def prev
  @prev
end

#sort ⇒ String

Returns Array of sort parameters.

Returns:

  • (String) —

    Array of sort parameters



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

def sort
  @sort
end

#user ⇒ UserRequest

Returns User request object.

Returns:



38
39
40
# File 'lib/getstream_ruby/generated/models/query_comments_request.rb', line 38

def user
  @user
end

#user_id ⇒ String

Returns:

  • (String)


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

def user_id
  @user_id
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/query_comments_request.rb', line 55

def self.json_field_mappings
  {
    filter: 'filter',
    id_around: 'id_around',
    include_soft_deleted_comments: 'include_soft_deleted_comments',
    limit: 'limit',
    next: 'next',
    prev: 'prev',
    sort: 'sort',
    user_id: 'user_id',
    user: 'user'
  }
end