Class: GetStream::Generated::Models::FeedGroupResponse
- Defined in:
- lib/getstream_ruby/generated/models/feed_group_response.rb
Instance Attribute Summary collapse
-
#activity_processors ⇒ Array<ActivityProcessorConfig>
Configuration for activity processors.
-
#activity_selectors ⇒ Array<ActivitySelectorConfigResponse>
Configuration for activity selectors.
- #aggregation ⇒ AggregationConfig
-
#created_at ⇒ DateTime
When the feed group was created.
-
#custom ⇒ Object
Custom data for the feed group.
-
#default_visibility ⇒ String
Default visibility for activities.
- #deleted_at ⇒ DateTime
-
#id ⇒ String
Identifier within the group.
- #notification ⇒ NotificationConfig
- #push_notification ⇒ PushNotificationConfig
- #ranking ⇒ RankingConfig
- #stories ⇒ StoriesConfig
-
#updated_at ⇒ DateTime
When the feed group was last updated.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FeedGroupResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FeedGroupResponse
Initialize with attributes
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 53 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @id = attributes[:id] || attributes['id'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @default_visibility = attributes[:default_visibility] || attributes['default_visibility'] || nil @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil @activity_processors = attributes[:activity_processors] || attributes['activity_processors'] || nil @activity_selectors = attributes[:activity_selectors] || attributes['activity_selectors'] || nil @aggregation = attributes[:aggregation] || attributes['aggregation'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @notification = attributes[:notification] || attributes['notification'] || nil @push_notification = attributes[:push_notification] || attributes['push_notification'] || nil @ranking = attributes[:ranking] || attributes['ranking'] || nil @stories = attributes[:stories] || attributes['stories'] || nil end |
Instance Attribute Details
#activity_processors ⇒ Array<ActivityProcessorConfig>
Returns Configuration for activity processors.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 29 def activity_processors @activity_processors end |
#activity_selectors ⇒ Array<ActivitySelectorConfigResponse>
Returns Configuration for activity selectors.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 32 def activity_selectors @activity_selectors end |
#aggregation ⇒ AggregationConfig
35 36 37 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 35 def aggregation @aggregation end |
#created_at ⇒ DateTime
Returns When the feed group was created.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 14 def created_at @created_at end |
#custom ⇒ Object
Returns Custom data for the feed group.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 38 def custom @custom end |
#default_visibility ⇒ String
Returns Default visibility for activities.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 23 def default_visibility @default_visibility end |
#deleted_at ⇒ DateTime
26 27 28 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 26 def deleted_at @deleted_at end |
#id ⇒ String
Returns Identifier within the group.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 17 def id @id end |
#notification ⇒ NotificationConfig
41 42 43 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 41 def notification @notification end |
#push_notification ⇒ PushNotificationConfig
44 45 46 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 44 def push_notification @push_notification end |
#ranking ⇒ RankingConfig
47 48 49 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 47 def ranking @ranking end |
#stories ⇒ StoriesConfig
50 51 52 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 50 def stories @stories end |
#updated_at ⇒ DateTime
Returns When the feed group was last updated.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 20 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/getstream_ruby/generated/models/feed_group_response.rb', line 71 def self.json_field_mappings { created_at: 'created_at', id: 'id', updated_at: 'updated_at', default_visibility: 'default_visibility', deleted_at: 'deleted_at', activity_processors: 'activity_processors', activity_selectors: 'activity_selectors', aggregation: 'aggregation', custom: 'custom', notification: 'notification', push_notification: 'push_notification', ranking: 'ranking', stories: 'stories' } end |