Class: GetStream::Generated::Models::QueryCommentsRequest
- Defined in:
- lib/getstream_ruby/generated/models/query_comments_request.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Filter to apply to the query.
-
#id_around ⇒ String
Returns the comment with the specified ID along with surrounding comments for context.
-
#include_soft_deleted_comments ⇒ Boolean
When true, include soft-deleted comments in the result.
-
#limit ⇒ Integer
Maximum number of comments to return.
- #next ⇒ String
- #prev ⇒ String
-
#sort ⇒ String
Array of sort parameters.
-
#user ⇒ UserRequest
User request object.
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ QueryCommentsRequest
constructor
Initialize with attributes.
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.
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
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.
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.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/query_comments_request.rb', line 23 def limit @limit end |
#next ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/query_comments_request.rb', line 26 def next @next end |
#prev ⇒ 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.
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.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/query_comments_request.rb', line 38 def user @user end |
#user_id ⇒ 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 |