Class: GetStream::Generated::Models::FeedGroup
- Defined in:
- lib/getstream_ruby/generated/models/feed_group.rb
Instance Attribute Summary collapse
- #activity_filter ⇒ ActivityFilterConfig
- #activity_processors ⇒ Array<ActivityProcessorConfig>
- #activity_selectors ⇒ Array<ActivitySelectorConfig>
- #aggregation ⇒ AggregationConfig
- #aggregation_version ⇒ Integer
- #app_pk ⇒ Integer
- #created_at ⇒ DateTime
- #custom ⇒ Object
- #default_follower_role ⇒ String
-
#default_visibility ⇒ FeedVisibility
Who can see and follow a feed.
- #deleted_at ⇒ DateTime
- #group_id ⇒ String
- #last_feed_get_at ⇒ DateTime
- #notification ⇒ NotificationConfig
- #push_notification ⇒ PushNotificationConfig
- #ranking ⇒ RankingConfig
- #stories ⇒ StoriesConfig
- #updated_at ⇒ DateTime
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FeedGroup
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FeedGroup
Initialize with attributes
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 68 def initialize(attributes = {}) super(attributes) @aggregation_version = attributes.fetch(:aggregation_version) { attributes.fetch('aggregation_version', nil) } @app_pk = attributes.fetch(:app_pk) { attributes.fetch('app_pk', nil) } @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) } @default_follower_role = attributes.fetch(:default_follower_role) { attributes.fetch('default_follower_role', nil) } @default_visibility = attributes.fetch(:default_visibility) { attributes.fetch('default_visibility', nil) } @group_id = attributes.fetch(:group_id) { attributes.fetch('group_id', nil) } @updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) } @activity_processors = attributes.fetch(:activity_processors) { attributes.fetch('activity_processors', nil) } @activity_selectors = attributes.fetch(:activity_selectors) { attributes.fetch('activity_selectors', nil) } @custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) } @deleted_at = attributes.fetch(:deleted_at) { attributes.fetch('deleted_at', nil) } @last_feed_get_at = attributes.fetch(:last_feed_get_at) { attributes.fetch('last_feed_get_at', nil) } @activity_filter = attributes.fetch(:activity_filter) { attributes.fetch('activity_filter', nil) } @aggregation = attributes.fetch(:aggregation) { attributes.fetch('aggregation', nil) } @notification = attributes.fetch(:notification) { attributes.fetch('notification', nil) } @push_notification = attributes.fetch(:push_notification) { attributes.fetch('push_notification', nil) } @ranking = attributes.fetch(:ranking) { attributes.fetch('ranking', nil) } @stories = attributes.fetch(:stories) { attributes.fetch('stories', nil) } end |
Instance Attribute Details
#activity_filter ⇒ ActivityFilterConfig
50 51 52 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 50 def activity_filter @activity_filter end |
#activity_processors ⇒ Array<ActivityProcessorConfig>
35 36 37 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 35 def activity_processors @activity_processors end |
#activity_selectors ⇒ Array<ActivitySelectorConfig>
38 39 40 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 38 def activity_selectors @activity_selectors end |
#aggregation ⇒ AggregationConfig
53 54 55 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 53 def aggregation @aggregation end |
#aggregation_version ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 14 def aggregation_version @aggregation_version end |
#app_pk ⇒ Integer
17 18 19 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 17 def app_pk @app_pk end |
#created_at ⇒ DateTime
20 21 22 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 20 def created_at @created_at end |
#custom ⇒ Object
41 42 43 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 41 def custom @custom end |
#default_follower_role ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 23 def default_follower_role @default_follower_role end |
#default_visibility ⇒ FeedVisibility
Returns Who can see and follow a feed.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 26 def default_visibility @default_visibility end |
#deleted_at ⇒ DateTime
44 45 46 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 44 def deleted_at @deleted_at end |
#group_id ⇒ String
29 30 31 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 29 def group_id @group_id end |
#last_feed_get_at ⇒ DateTime
47 48 49 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 47 def last_feed_get_at @last_feed_get_at end |
#notification ⇒ NotificationConfig
56 57 58 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 56 def notification @notification end |
#push_notification ⇒ PushNotificationConfig
59 60 61 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 59 def push_notification @push_notification end |
#ranking ⇒ RankingConfig
62 63 64 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 62 def ranking @ranking end |
#stories ⇒ StoriesConfig
65 66 67 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 65 def stories @stories end |
#updated_at ⇒ DateTime
32 33 34 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 32 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/getstream_ruby/generated/models/feed_group.rb', line 91 def self.json_field_mappings { aggregation_version: 'aggregation_version', app_pk: 'app_pk', created_at: 'created_at', default_follower_role: 'default_follower_role', default_visibility: 'default_visibility', group_id: 'group_id', updated_at: 'updated_at', activity_processors: 'activity_processors', activity_selectors: 'activity_selectors', custom: 'custom', deleted_at: 'deleted_at', last_feed_get_at: 'last_feed_get_at', activity_filter: 'activity_filter', aggregation: 'aggregation', notification: 'notification', push_notification: 'push_notification', ranking: 'ranking', stories: 'stories' } end |