Class: GetStream::Generated::Models::FeedsV3ActivityResponse
- Defined in:
- lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb
Instance Attribute Summary collapse
- #attachments ⇒ Array<Attachment>
- #bookmark_count ⇒ Integer
- #collections ⇒ Hash<String, FeedsEnrichedCollectionResponse>
- #comment_count ⇒ Integer
- #comments ⇒ Array<FeedsV3CommentResponse>
- #created_at ⇒ DateTime
- #current_feed ⇒ FeedsFeedResponse
- #custom ⇒ Object
- #deleted_at ⇒ DateTime
- #edited_at ⇒ DateTime
- #expires_at ⇒ DateTime
- #feeds ⇒ Array<String>
- #filter_tags ⇒ Array<String>
- #friend_reaction_count ⇒ Integer
- #friend_reactions ⇒ Array<FeedsReactionResponse>
- #hidden ⇒ Boolean
- #id ⇒ String
- #interest_tags ⇒ Array<String>
- #is_read ⇒ Boolean
- #is_seen ⇒ Boolean
- #is_watched ⇒ Boolean
- #latest_reactions ⇒ Array<FeedsReactionResponse>
- #location ⇒ FeedsActivityLocation
- #mentioned_users ⇒ Array<UserResponse>
- #metrics ⇒ Hash<String, Integer>
- #moderation ⇒ ModerationV2Response
- #moderation_action ⇒ String
- #notification_context ⇒ FeedsNotificationContext
- #own_bookmarks ⇒ Array<FeedsBookmarkResponse>
- #own_reactions ⇒ Array<FeedsReactionResponse>
- #parent ⇒ FeedsV3ActivityResponse
- #poll ⇒ PollResponseData
- #popularity ⇒ Integer
- #preview ⇒ Boolean
- #reaction_count ⇒ Integer
- #reaction_groups ⇒ Hash<String, FeedsReactionGroupResponse>
- #restrict_replies ⇒ String
- #score ⇒ Float
- #score_vars ⇒ Object
- #search_data ⇒ Object
- #selector_source ⇒ String
- #share_count ⇒ Integer
- #text ⇒ String
- #type ⇒ String
- #updated_at ⇒ DateTime
- #user ⇒ UserResponse
- #visibility ⇒ String
- #visibility_tag ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FeedsV3ActivityResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ FeedsV3ActivityResponse
Initialize with attributes
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 158 def initialize(attributes = {}) super(attributes) @bookmark_count = attributes[:bookmark_count] || attributes['bookmark_count'] @comment_count = attributes[:comment_count] || attributes['comment_count'] @created_at = attributes[:created_at] || attributes['created_at'] @hidden = attributes[:hidden] || attributes['hidden'] @id = attributes[:id] || attributes['id'] @popularity = attributes[:popularity] || attributes['popularity'] @preview = attributes[:preview] || attributes['preview'] @reaction_count = attributes[:reaction_count] || attributes['reaction_count'] @restrict_replies = attributes[:restrict_replies] || attributes['restrict_replies'] @score = attributes[:score] || attributes['score'] @share_count = attributes[:share_count] || attributes['share_count'] @type = attributes[:type] || attributes['type'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @visibility = attributes[:visibility] || attributes['visibility'] @attachments = attributes[:attachments] || attributes['attachments'] @comments = attributes[:comments] || attributes['comments'] @feeds = attributes[:feeds] || attributes['feeds'] @filter_tags = attributes[:filter_tags] || attributes['filter_tags'] @interest_tags = attributes[:interest_tags] || attributes['interest_tags'] @latest_reactions = attributes[:latest_reactions] || attributes['latest_reactions'] @mentioned_users = attributes[:mentioned_users] || attributes['mentioned_users'] @own_bookmarks = attributes[:own_bookmarks] || attributes['own_bookmarks'] @own_reactions = attributes[:own_reactions] || attributes['own_reactions'] @collections = attributes[:collections] || attributes['collections'] @custom = attributes[:custom] || attributes['custom'] @reaction_groups = attributes[:reaction_groups] || attributes['reaction_groups'] @search_data = attributes[:search_data] || attributes['search_data'] @user = attributes[:user] || attributes['user'] @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil @edited_at = attributes[:edited_at] || attributes['edited_at'] || nil @expires_at = attributes[:expires_at] || attributes['expires_at'] || nil @friend_reaction_count = attributes[:friend_reaction_count] || attributes['friend_reaction_count'] || nil @is_read = attributes[:is_read] || attributes['is_read'] || nil @is_seen = attributes[:is_seen] || attributes['is_seen'] || nil @is_watched = attributes[:is_watched] || attributes['is_watched'] || nil @moderation_action = attributes[:moderation_action] || attributes['moderation_action'] || nil @selector_source = attributes[:selector_source] || attributes['selector_source'] || nil @text = attributes[:text] || attributes['text'] || nil @visibility_tag = attributes[:visibility_tag] || attributes['visibility_tag'] || nil @friend_reactions = attributes[:friend_reactions] || attributes['friend_reactions'] || nil @current_feed = attributes[:current_feed] || attributes['current_feed'] || nil @location = attributes[:location] || attributes['location'] || nil @metrics = attributes[:metrics] || attributes['metrics'] || nil @moderation = attributes[:moderation] || attributes['moderation'] || nil @notification_context = attributes[:notification_context] || attributes['notification_context'] || nil @parent = attributes[:parent] || attributes['parent'] || nil @poll = attributes[:poll] || attributes['poll'] || nil @score_vars = attributes[:score_vars] || attributes['score_vars'] || nil end |
Instance Attribute Details
#attachments ⇒ Array<Attachment>
56 57 58 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 56 def @attachments end |
#bookmark_count ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 14 def bookmark_count @bookmark_count end |
#collections ⇒ Hash<String, FeedsEnrichedCollectionResponse>
83 84 85 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 83 def collections @collections end |
#comment_count ⇒ Integer
17 18 19 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 17 def comment_count @comment_count end |
#comments ⇒ Array<FeedsV3CommentResponse>
59 60 61 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 59 def comments @comments end |
#created_at ⇒ DateTime
20 21 22 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 20 def created_at @created_at end |
#current_feed ⇒ FeedsFeedResponse
134 135 136 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 134 def current_feed @current_feed end |
#custom ⇒ Object
86 87 88 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 86 def custom @custom end |
#deleted_at ⇒ DateTime
98 99 100 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 98 def deleted_at @deleted_at end |
#edited_at ⇒ DateTime
101 102 103 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 101 def edited_at @edited_at end |
#expires_at ⇒ DateTime
104 105 106 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 104 def expires_at @expires_at end |
#feeds ⇒ Array<String>
62 63 64 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 62 def feeds @feeds end |
#filter_tags ⇒ Array<String>
65 66 67 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 65 def @filter_tags end |
#friend_reaction_count ⇒ Integer
107 108 109 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 107 def friend_reaction_count @friend_reaction_count end |
#friend_reactions ⇒ Array<FeedsReactionResponse>
131 132 133 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 131 def friend_reactions @friend_reactions end |
#hidden ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 23 def hidden @hidden end |
#id ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 26 def id @id end |
#interest_tags ⇒ Array<String>
68 69 70 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 68 def @interest_tags end |
#is_read ⇒ Boolean
110 111 112 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 110 def is_read @is_read end |
#is_seen ⇒ Boolean
113 114 115 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 113 def is_seen @is_seen end |
#is_watched ⇒ Boolean
116 117 118 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 116 def is_watched @is_watched end |
#latest_reactions ⇒ Array<FeedsReactionResponse>
71 72 73 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 71 def latest_reactions @latest_reactions end |
#location ⇒ FeedsActivityLocation
137 138 139 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 137 def location @location end |
#mentioned_users ⇒ Array<UserResponse>
74 75 76 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 74 def mentioned_users @mentioned_users end |
#metrics ⇒ Hash<String, Integer>
140 141 142 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 140 def metrics @metrics end |
#moderation ⇒ ModerationV2Response
143 144 145 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 143 def moderation @moderation end |
#moderation_action ⇒ String
119 120 121 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 119 def moderation_action @moderation_action end |
#notification_context ⇒ FeedsNotificationContext
146 147 148 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 146 def notification_context @notification_context end |
#own_bookmarks ⇒ Array<FeedsBookmarkResponse>
77 78 79 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 77 def own_bookmarks @own_bookmarks end |
#own_reactions ⇒ Array<FeedsReactionResponse>
80 81 82 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 80 def own_reactions @own_reactions end |
#parent ⇒ FeedsV3ActivityResponse
149 150 151 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 149 def parent @parent end |
#poll ⇒ PollResponseData
152 153 154 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 152 def poll @poll end |
#popularity ⇒ Integer
29 30 31 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 29 def popularity @popularity end |
#preview ⇒ Boolean
32 33 34 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 32 def preview @preview end |
#reaction_count ⇒ Integer
35 36 37 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 35 def reaction_count @reaction_count end |
#reaction_groups ⇒ Hash<String, FeedsReactionGroupResponse>
89 90 91 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 89 def reaction_groups @reaction_groups end |
#restrict_replies ⇒ String
38 39 40 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 38 def restrict_replies @restrict_replies end |
#score ⇒ Float
41 42 43 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 41 def score @score end |
#score_vars ⇒ Object
155 156 157 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 155 def score_vars @score_vars end |
#search_data ⇒ Object
92 93 94 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 92 def search_data @search_data end |
#selector_source ⇒ String
122 123 124 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 122 def selector_source @selector_source end |
#share_count ⇒ Integer
44 45 46 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 44 def share_count @share_count end |
#text ⇒ String
125 126 127 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 125 def text @text end |
#type ⇒ String
47 48 49 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 47 def type @type end |
#updated_at ⇒ DateTime
50 51 52 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 50 def updated_at @updated_at end |
#user ⇒ UserResponse
95 96 97 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 95 def user @user end |
#visibility ⇒ String
53 54 55 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 53 def visibility @visibility end |
#visibility_tag ⇒ String
128 129 130 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 128 def visibility_tag @visibility_tag end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/getstream_ruby/generated/models/feeds_v3_activity_response.rb', line 211 def self.json_field_mappings { bookmark_count: 'bookmark_count', comment_count: 'comment_count', created_at: 'created_at', hidden: 'hidden', id: 'id', popularity: 'popularity', preview: 'preview', reaction_count: 'reaction_count', restrict_replies: 'restrict_replies', score: 'score', share_count: 'share_count', type: 'type', updated_at: 'updated_at', visibility: 'visibility', attachments: 'attachments', comments: 'comments', feeds: 'feeds', filter_tags: 'filter_tags', interest_tags: 'interest_tags', latest_reactions: 'latest_reactions', mentioned_users: 'mentioned_users', own_bookmarks: 'own_bookmarks', own_reactions: 'own_reactions', collections: 'collections', custom: 'custom', reaction_groups: 'reaction_groups', search_data: 'search_data', user: 'user', deleted_at: 'deleted_at', edited_at: 'edited_at', expires_at: 'expires_at', friend_reaction_count: 'friend_reaction_count', is_read: 'is_read', is_seen: 'is_seen', is_watched: 'is_watched', moderation_action: 'moderation_action', selector_source: 'selector_source', text: 'text', visibility_tag: 'visibility_tag', friend_reactions: 'friend_reactions', current_feed: 'current_feed', location: 'location', metrics: 'metrics', moderation: 'moderation', notification_context: 'notification_context', parent: 'parent', poll: 'poll', score_vars: 'score_vars' } end |