Class: GetStream::Generated::Models::GetOrCreateFeedResponse
- Defined in:
- lib/getstream_ruby/generated/models/get_or_create_feed_response.rb
Instance Attribute Summary collapse
- #activities ⇒ Array<ActivityResponse>
- #aggregated_activities ⇒ Array<AggregatedActivityResponse>
- #created ⇒ Boolean
-
#degraded_selectors ⇒ Array<String>
Activity selectors dropped from this read because they exceeded their time budget (see the time_budget_ms selector setting).
-
#duration ⇒ String
Duration of the request in milliseconds.
- #feed ⇒ FeedResponse
- #followers ⇒ Array<FollowResponse>
- #followers_pagination ⇒ PagerResponse
- #following ⇒ Array<FollowResponse>
- #following_pagination ⇒ PagerResponse
- #member_pagination ⇒ PagerResponse
- #members ⇒ Array<FeedMemberResponse>
- #next ⇒ String
- #notification_status ⇒ NotificationStatusResponse
- #pinned_activities ⇒ Array<ActivityPinResponse>
- #prev ⇒ String
- #ranking_config ⇒ RankingConfig
-
#request_id ⇒ String
Signed token identifying this read.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GetOrCreateFeedResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ GetOrCreateFeedResponse
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/get_or_create_feed_response.rb', line 68 def initialize(attributes = {}) super(attributes) @created = attributes.fetch(:created) { attributes.fetch('created', nil) } @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) } @activities = attributes.fetch(:activities) { attributes.fetch('activities', nil) } @aggregated_activities = attributes.fetch(:aggregated_activities) { attributes.fetch('aggregated_activities', nil) } @followers = attributes.fetch(:followers) { attributes.fetch('followers', nil) } @following = attributes.fetch(:following) { attributes.fetch('following', nil) } @members = attributes.fetch(:members) { attributes.fetch('members', nil) } @pinned_activities = attributes.fetch(:pinned_activities) { attributes.fetch('pinned_activities', nil) } @feed = attributes.fetch(:feed) { attributes.fetch('feed', nil) } @next = attributes.fetch(:next) { attributes.fetch('next', nil) } @prev = attributes.fetch(:prev) { attributes.fetch('prev', nil) } @request_id = attributes.fetch(:request_id) { attributes.fetch('request_id', nil) } @degraded_selectors = attributes.fetch(:degraded_selectors) { attributes.fetch('degraded_selectors', nil) } @followers_pagination = attributes.fetch(:followers_pagination) { attributes.fetch('followers_pagination', nil) } @following_pagination = attributes.fetch(:following_pagination) { attributes.fetch('following_pagination', nil) } @member_pagination = attributes.fetch(:member_pagination) { attributes.fetch('member_pagination', nil) } @notification_status = attributes.fetch(:notification_status) { attributes.fetch('notification_status', nil) } @ranking_config = attributes.fetch(:ranking_config) { attributes.fetch('ranking_config', nil) } end |
Instance Attribute Details
#activities ⇒ Array<ActivityResponse>
20 21 22 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 20 def activities @activities end |
#aggregated_activities ⇒ Array<AggregatedActivityResponse>
23 24 25 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 23 def aggregated_activities @aggregated_activities end |
#created ⇒ Boolean
14 15 16 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 14 def created @created end |
#degraded_selectors ⇒ Array<String>
Returns Activity selectors dropped from this read because they exceeded their time budget (see the time_budget_ms selector setting). Their activities are missing from this page, and they stay out for the rest of this pagination session. Omitted when every selector completed.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 50 def degraded_selectors @degraded_selectors end |
#duration ⇒ String
Returns Duration of the request in milliseconds.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 17 def duration @duration end |
#feed ⇒ FeedResponse
38 39 40 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 38 def feed @feed end |
#followers ⇒ Array<FollowResponse>
26 27 28 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 26 def followers @followers end |
#followers_pagination ⇒ PagerResponse
53 54 55 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 53 def followers_pagination @followers_pagination end |
#following ⇒ Array<FollowResponse>
29 30 31 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 29 def following @following end |
#following_pagination ⇒ PagerResponse
56 57 58 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 56 def following_pagination @following_pagination end |
#member_pagination ⇒ PagerResponse
59 60 61 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 59 def member_pagination @member_pagination end |
#members ⇒ Array<FeedMemberResponse>
32 33 34 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 32 def members @members end |
#next ⇒ String
41 42 43 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 41 def next @next end |
#notification_status ⇒ NotificationStatusResponse
62 63 64 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 62 def notification_status @notification_status end |
#pinned_activities ⇒ Array<ActivityPinResponse>
35 36 37 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 35 def pinned_activities @pinned_activities end |
#prev ⇒ String
44 45 46 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 44 def prev @prev end |
#ranking_config ⇒ RankingConfig
65 66 67 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 65 def ranking_config @ranking_config end |
#request_id ⇒ String
Returns Signed token identifying this read. Pass it with activity metrics events to attribute them to this read. Only set on feed reads for paid plans with an authenticated user, when the app uses feed impressions (For You exploration, or a For You ranking that uses impressions_bucket) or For You engagement analytics.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/get_or_create_feed_response.rb', line 47 def request_id @request_id 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/get_or_create_feed_response.rb', line 91 def self.json_field_mappings { created: 'created', duration: 'duration', activities: 'activities', aggregated_activities: 'aggregated_activities', followers: 'followers', following: 'following', members: 'members', pinned_activities: 'pinned_activities', feed: 'feed', next: 'next', prev: 'prev', request_id: 'request_id', degraded_selectors: 'degraded_selectors', followers_pagination: 'followers_pagination', following_pagination: 'following_pagination', member_pagination: 'member_pagination', notification_status: 'notification_status', ranking_config: 'ranking_config' } end |