Class: GetStream::Generated::Models::ExportFeedsByTypeRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ExportFeedsByTypeRequest
- Defined in:
- lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb
Overview
Request for exporting one type of feeds data
Instance Attribute Summary collapse
-
#activity_ids ⇒ Array<String>
Only export comments or reactions of these activities; not allowed on other types.
-
#created_at_from ⇒ DateTime
Only export rows created at or after this time.
-
#created_at_to ⇒ DateTime
Only export rows created before this time.
-
#include_deleted ⇒ Boolean
Whether soft-deleted activities and comments are exported.
-
#user_id ⇒ String
Only export rows of this user: activities, comments and reactions by the user; follows where the user created the source or the target feed.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ExportFeedsByTypeRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ExportFeedsByTypeRequest
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb', line 29 def initialize(attributes = {}) super(attributes) @created_at_from = attributes.fetch(:created_at_from) { attributes.fetch('created_at_from', nil) } @created_at_to = attributes.fetch(:created_at_to) { attributes.fetch('created_at_to', nil) } @include_deleted = attributes.fetch(:include_deleted) { attributes.fetch('include_deleted', nil) } @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) } @activity_ids = attributes.fetch(:activity_ids) { attributes.fetch('activity_ids', nil) } end |
Instance Attribute Details
#activity_ids ⇒ Array<String>
Returns Only export comments or reactions of these activities; not allowed on other types. At most 100 unique, non-empty IDs.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb', line 26 def activity_ids @activity_ids end |
#created_at_from ⇒ DateTime
Returns Only export rows created at or after this time. On reactions it requires user_id or activity_ids, on follows user_id; on comments without activity_ids soft-deleted rows are left out.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb', line 14 def created_at_from @created_at_from end |
#created_at_to ⇒ DateTime
Returns Only export rows created before this time. On reactions it requires user_id or activity_ids, on follows user_id; on comments without activity_ids soft-deleted rows are left out.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb', line 17 def created_at_to @created_at_to end |
#include_deleted ⇒ Boolean
Returns Whether soft-deleted activities and comments are exported. Defaults to false; true cannot be combined with user_id on activities or comments.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb', line 20 def include_deleted @include_deleted end |
#user_id ⇒ String
Returns Only export rows of this user: activities, comments and reactions by the user; follows where the user created the source or the target feed. With user_id, soft-deleted activities and comments are left out.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb', line 23 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/export_feeds_by_type_request.rb', line 39 def self.json_field_mappings { created_at_from: 'created_at_from', created_at_to: 'created_at_to', include_deleted: 'include_deleted', user_id: 'user_id', activity_ids: 'activity_ids' } end |