Class: GetStream::Generated::Models::QueryFeedsReactionsRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::QueryFeedsReactionsRequest
- Defined in:
- lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Optional filter; only reaction_type and created_at are accepted.
- #limit ⇒ Integer
- #next ⇒ String
-
#object_type ⇒ String
Which reactions to list: activity reactions or comment reactions.
- #prev ⇒ String
-
#sort ⇒ Array<SortParamRequest>
Sort by created_at only (a single field); defaults to created_at descending.
-
#user_id ⇒ String
The user whose reactions to list.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ QueryFeedsReactionsRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ QueryFeedsReactionsRequest
Initialize with attributes
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 35 def initialize(attributes = {}) super(attributes) @object_type = attributes.fetch(:object_type) { attributes.fetch('object_type', nil) } @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', 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) } @filter = attributes.fetch(:filter) { attributes.fetch('filter', nil) } end |
Instance Attribute Details
#filter ⇒ Object
Returns Optional filter; only reaction_type and created_at are accepted.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 32 def filter @filter end |
#limit ⇒ Integer
20 21 22 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 20 def limit @limit end |
#next ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 23 def next @next end |
#object_type ⇒ String
Returns Which reactions to list: activity reactions or comment reactions.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 14 def object_type @object_type end |
#prev ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 26 def prev @prev end |
#sort ⇒ Array<SortParamRequest>
Returns Sort by created_at only (a single field); defaults to created_at descending.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 29 def sort @sort end |
#user_id ⇒ String
Returns The user whose reactions to list.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 17 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/getstream_ruby/generated/models/query_feeds_reactions_request.rb', line 47 def self.json_field_mappings { object_type: 'object_type', user_id: 'user_id', limit: 'limit', next: 'next', prev: 'prev', sort: 'sort', filter: 'filter' } end |